Dragnet
simulate slow network connections on *nix
Install / Use
/learn @rflynn/DragnetREADME
Dragnet
Install
$ git clone git://github.com/rflynn/dragnet.git
$ cd dragnet/src
$ make
Examples
# watch google load in slow-mo via wget's recv(..., MSG_PEEK) blocking sockets
$ LD_PRELOAD=./dragnet.so wget http://www.google.com/ -O - 2>/dev/null
# watch google load in slow-mo via curl's poll()-driven non-blocking sockets
$ LD_PRELOAD=./dragnet.so curl http://www.google.com/ -o - 2>/dev/null
# watch dragnet at work
$ LD_PRELOAD=./dragnet.so wget http://www.google.com/ -O - >/dev/null
What?
dragnet is a straight-forward UNIX utility to simulate network problems.
Why?
Only when network problems exist are problems in networked applications fixed.
How?
dragnet uses LD_PRELOAD to intercept libc networking function calls like socket(), send(), recv() and close() and wrap these calls with its own buffering to simulate a slow network.
Where?
http://github.com/rflynn/dragnet
Who?
Ryan Flynn parseerror+dragnet@gmail.com
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
