www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: [libssh2] How to make SSH server responses very slow?

Re: [libssh2] How to make SSH server responses very slow?

From: James Housley <jim_at_thehousleys.net>
Date: Tue, 23 Jan 2007 08:23:50 -0500

On Jan 23, 2007, at 8:06 AM, Daniel Stenberg wrote:

> Hey
>
> Since we're not yet having our own SSH test server, does anyone
> have any good
> idea on how to slow down the response/transfer from a SSH server?
> In order to
> try my non-blocking code really good, it would be nice to have a
> server that
> responds with only a few bytes/second so that almost every socket-
> reading call
> would be affected...
>

At least on FreeBSD, and I am guessing similar can be done with
Linux, you can use the firewall. Using "ipfw" and traffic shaping
you could write rules to force a max data rate and/or delays. http://
www.freebsd.org/cgi/man.cgi?
query=ipfw&apropos=0&sektion=0&manpath=FreeBSD+6.2-
RELEASE&format=html#TRAFFIC+SHAPER

Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
In theory there is no difference between theory and practice.
In practice there is no similarity.
       -- From the "I wish I'd said that" archives.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

  • application/pkcs7-signature attachment: smime.p7s
Received on 2007-01-23

the libssh2 team