Skip to content

Instantly share code, notes, and snippets.

@kymair
Created December 23, 2012 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kymair/4361955 to your computer and use it in GitHub Desktop.
Save kymair/4361955 to your computer and use it in GitHub Desktop.
# Create a temp big file on server
kymair:wwwroot/ $ dd if=/dev/zero of=file.zip bs=1M count=100
# wget that file from client, two connections at the same time
➜ ~ wget kymair.com/file.zip > /dev/null 2&>1 &
[1] 79229
➜ ~ wget kymair.com/file.zip > /dev/null 2&>1 &
[2] 79234
# Client netstat result
➜ ~ netstat -na | grep 173.255.249.237
tcp4 0 0 192.168.1.104.50792 173.255.249.237.80 ESTABLISHED
tcp4 0 0 192.168.1.104.50789 173.255.249.237.80 ESTABLISHED
# Server netstat result
kymair:wwwroot/ $ netstat -na |grep 113.76.78.174 [12:21:11]
tcp 0 184320 173.255.249.237:80 113.76.78.174:50792 ESTABLISHED
tcp 0 331200 173.255.249.237:80 113.76.78.174:50789 ESTABLISHED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment