I am writing a client-side application which connect() to a server and close it in a for loop.
The connect() is done in blocking-mode, and I found that some connect() call will block for about 3 seconds after thousands of successful connect().
I used tcpdump and found some strange result: after I called the connect(), SYN was not sent for about 3 seconds.
What happened?
PS. I am on 64-bit Ubuntu, kernel 3.0.0-13.