From: Flavio Leitner Date: Mon, 26 Apr 2010 18:33:27 +0000 (+0000) Subject: TCP: avoid to send keepalive probes if receiving data X-Git-Tag: v2.6.35-rc1~473^2~374 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c37e5de456987f5bc80879afde05aa120784095;p=pandora-kernel.git TCP: avoid to send keepalive probes if receiving data RFC 1122 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 acknowledgement packet is reseting the keepalive timer but the data packet isn't. This patch fixes it by checking the timestamp of the last received data packet too when the keepalive timer expires. Signed-off-by: Flavio Leitner Signed-off-by: Eric Dumazet Acked-by: Ilpo Järvinen Signed-off-by: David S. Miller --- Reading git-diff-tree failed