httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip A. Prindeville" <>
Subject Re: [BUG] 1.3a2 on NT (no authorization? not closing socket ?)
Date Sun, 31 Aug 1997 22:14:28 GMT

	Giovanni Maruzzelli wrote:
	>         * when connecting from a Unix machine to an NT machine running
	>           apache-1.3a2 the sockets remains in a TIME_WAIT state. This
	>	    not happen with windoz clients.

	Do you mean the sockets at the Unix end or the Windows end?



Actually, a socket is *supposed* to stay in the TIME_WAIT state for 4
minutes, 15 seconds.  This is referred to as "quiet time".  Since the
IP TTL is an 8 bit counter, that is supposed to be decremented by one
for each hop it takes *or* by the number of seconds the packet is
held in a router (min 1), then a looping duplicate or delayed out-of-
order packet can last up to 255 seconds (4:15) in the network, and you
need to cache the TCP Control Block in the closed state to make sure
that the same port doesn't get reused in that period and mistakenly
accept data destined for the previous instance of that socket.

Make sense?

But if the socket is staying in the TIME_WAIT state longer that 4:15,
I would say one end is doing a broken close (or getting disconnected


View raw message