Re: TIME_WAIT connections

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Jun 19 2000 - 05:57:28 EST


> 369 ESTABLISHED
> 4054 TIME_WAIT
>
> Machine is web serwer with reather big traffic. Why there is
> so much connections in TIME_WAIT state ?

Its quite normal. A tiny fragment of a TCP session has to remain for 2 minutes
after use at least at one end of a TCP connection to avoid corruption[1].

> Similar problem was in FreeBSD 3.x, but in 4.0 there is better.
> Connections in TIME_WAIT state is below 500.

Hopefully because they are doing proper recycling not breaking the timeout
rules.

[1] Those smart people thinking but an RST doesn't do this are right. It also
demonstrably can cause corrupt tcp sessions in some cases. The gurus of TCP
are still fixing it ;)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:16 EST