[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100416150644.GA2641@sysclose.org>
Date: Fri, 16 Apr 2010 12:06:44 -0300
From: Flavio Leitner <fbl@...close.org>
To: netdev@...r.kernel.org
Subject: TCP keepalive question
Hi,
I'm reading the RFC 1122 and it says the following:
...
Keep-alive packets MUST only be sent when no data or
acknowledgement packets have been received for the
connection within an interval.
...
The receiving acknowledgement part seems to be ok and handled
by tcp_keepalive_timer() when it does
elapsed = tcp_time_stamp - tp->rcv_tstamp;
However, if one side just receive data and reply with ACK, the
keepalive probes is sent anyway - 2.6.32.9-70.fc12.i686.PAE.
Any reason to not reset keepalive timer when data is received?
Socket options used:
SO_KEEPALIVE, TCP_KEEPIDLE=40, TCP_KEEPCNT=6, TCP_KEEPINTVL=5
Traffic dump attached.
thanks!
--
Flavio
Download attachment "keepalive.pcap.gz" of type "application/octet-stream" (552 bytes)
Powered by blists - more mailing lists