Re: TCP Timeout...

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 19 Nov 1996 19:31:17 +0000 (GMT)


> But the problem is the time between close one socket is very long.
> CLOSE_WAIT time is too long before it closed...
> Can I decrease it ??? I think it make my program slowdown to waiting
> for make a new connection... is it right ???

CLOSE_WAIT lasts as long as it takes for the two ends to close. The only
timeout which is a constant is TIME_WAIT which is mandated at 2 minutes.
You can make lots of connections to the same port as each will use a different
port at the client end, so unless you can use about 500 connects/2 minutes
(ie several per second) its not an issue. If it is an issue you are using
the wrong scheme or wrong protocol.

Alan