diff options
author | Flavio Leitner <fleitner@redhat.com> | 2010-04-26 18:33:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-27 12:53:25 -0700 |
commit | 6c37e5de456987f5bc80879afde05aa120784095 (patch) | |
tree | 1459ee69ef3c7172a82d07a7b8aea00836eedda5 /COPYING | |
parent | dcdca2c49bb6328bbc7cd8d73434c308b5dd0df2 (diff) | |
download | linux-6c37e5de456987f5bc80879afde05aa120784095.tar.gz linux-6c37e5de456987f5bc80879afde05aa120784095.tar.bz2 linux-6c37e5de456987f5bc80879afde05aa120784095.zip |
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 <fleitner@redhat.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions