Skip to content

rflynn/dragnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

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 [email protected]

About

simulate slow network connections on *nix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages