Archives by Category
Contact
- Hagen Paul Pfeifer
- http://jauu.net
- hagen@jauu.net (encrypted preferred)
- KeyId: 0x98350C22
- Telephone: +49 174 5455209
Follow this blog
Netsend Artificial Read Delay
AUG 2010
05
- Published in: programming
- | Time: 01:38:57 CEST
- | SHA1: 80da6274840cac2353f628280956eb7299a64730
Today I invest my time in adding a new option for
netsend to introduce an artificial read() delay
in the receiver path. The new option can be enabled via:
netsend -v loudish -B 10,1 -b 250 -s SO_RCVBUF 1 tcp receive
The options states that the receiver should initial block for 10 seconds and
then read 250 byte chunks with a delay of one second: -B 10,1. If you waive
the initial delay you can also skip the coma separated list and hand over only
one argument, e.g. -b 1. This will delay the read() operation with a one
second delay.