This is what Rich Stevens says about TIME_WAIT:
"There are two reasons for the TIME_WAIT state:
1. to implement TCP's full-duplex connection termination
reliably
2. to allow old duplicate segments to expire in the network
"
That means, we have to accept going through this state
of a TCP connection. Otherwise, it may not work correctly.
The duration of TIME_WAIT state is implementation-dependent (recommended value is 4 minutes, BSD has 1 minute).
Main Topics
Browse All Topics





by: navigatorPosted on 2002-05-15 at 21:51:20ID: 7012930
btw - I know the TIME_WAIT state is normal, my problem is that they are piling up too fast. I have NO control over the server I am querying, so there is no way for me to change it from a temporary stream to a long term stream.
Basically, what I am asking, is there anything I can do on the client end to reduce or remove the TIME_WAIT? I've tested it with 5 clients hitting the server at the average 1.5 second interval, and the system resources are dwindling fast.