[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A93E36C.8070502@gmail.com>
Date: Tue, 25 Aug 2009 15:13:16 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Li_Xin2@....com
CC: linux-kernel@...r.kernel.org,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: TCP keepalive timer problem
Li_Xin2@....com a écrit :
> Greetings,
>
> I found one problem in Linux TCP keepalive timer processing, after
> searching on google, I found Daniel Stempel reported the same problem in
> 2007 (http://lkml.indiana.edu/hypermail/linux/kernel/0702.2/1136.html),
> but got no answer. So I have to reraise it.
>
> Can anyone help answer this two-years long question?
>
>
You should explain your problem in detail, since Daniel one was probably different.
He mentioned "(timeout is set to e.g. 30 seconds)" which is kind of nasty, given normal one is 7200
If some packets are in flight, keepalive is not fired at all, since normal
retransmits should take place (check tcp_retries2 sysctl).
TCP Keepalive is only fired when no trafic occurred for a long time, only if
SO_KEEPALIVE socket option was enabled by application.
tcp_retries2 (integer; default: 15)
The maximum number of times a TCP packet is retransmitted in established state
before giving up. The default value is 15, which corresponds to a duration of
approximately between 13 to 30 minutes, depending on the retransmission timeout.
The RFC 1122 specified minimum limit of 100 seconds is typically deemed too short.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists