The throttle package

[Tags: bsd3, deprecated, library]

Deprecated

Sometimes you want to pretend you're on a very slow connection to see how your program deals with delays, this program does that.


[Skip to ReadMe]

Properties

Versions0.1, 0.1.1, 1.0.0, 2.0.0, 3.0.0
Change logNone available
Dependenciesbase (==4.*), cmdargs (==0.6.*), network (==2.2.1.*), unix (==2.4.0.*) [details]
LicenseBSD3
CopyrightChris Done 2010
AuthorChris Done <chrisdone@gmail.com>
MaintainerChris Done <chrisdone@gmail.com>
CategoryNetwork
Home pagehttp://github.com/chrisdone/throttle
Executablesthrottle
UploadedSat Oct 30 11:51:56 UTC 2010 by ChrisDone
DistributionsNixOS:3.0.0
Downloads656 total (36 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-06-09 [all 1 reports]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for throttle-0.1

Throttle

Merely proxies connections to a single server, and throttles the connection to a given speed in KB/s. This is useful for testing web sites and other network based applications for which latency and connection speed can affect the functioning or presentation of the program to the user.

I don't go to any lengths to ensure the speed is accurate, nor that asking for 500KB/s will get you 500KB/s, but I do guarantee if you ask to throttle it at X KB/s then you will not get faster than X KB/s.

Here is the --help output:

$ throttle --help
Throttle v1.0, (C) Chris Done 2010

throttle [OPTIONS]
  Listens on port <listen> and proxies a throttled connection to <host> on
  <port> at speed <speed>KB/s.

Common flags:
  -l --listen=INT 
  -h --host=ITEM  
  -p --port=INT   
  -s --speed[=NUM]  Speed in KB/s, e.g. 1.6.
  -? --help         Display help message
  -V --version      Print version information