mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [DOC PATCH] Re: tcp_keepalive_intvl vs tcp_keepalive_time?
@ 2002-02-11 20:51 Nivedita Singhvi
  2002-02-11 22:27 ` Rob Landley
  0 siblings, 1 reply; 3+ messages in thread
From: Nivedita Singhvi @ 2002-02-11 20:51 UTC (permalink / raw)
  To: Rob Landley; +Cc: linux-kernel




> What kind of packets are keepalive packets, by the
> way?  (I don't think the firewall rules are filtering
> them out, but I can't be sure.)

> Rob again. :)

Thanks for correcting the documentation - it was out of date and erroneous.

The keepalive packets are simple tcp segments sent on the connection:

- no data
- ack # is next expected byte
- sequence # is a stale (byte already acked by the other end) one, so that
the
  other end is forced to send an ack in return (as it receives an out of
window
  sequence #).

I cant imagine how a firewall would be filtering them..

thanks,
Nivedita




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: tcp_keepalive_intvl vs tcp_keepalive_time?
@ 2002-02-10  4:40 Nivedita Singhvi
  2002-02-10  7:56 ` [DOC PATCH] " Rob Landley
  0 siblings, 1 reply; 3+ messages in thread
From: Nivedita Singhvi @ 2002-02-10  4:40 UTC (permalink / raw)
  To: landley; +Cc: linux-kernel


> Would someone be kind enough to explain the difference between
> tcp_keepalive_intvl and tcp_keepalive_time?
> Documentation/filesystems/proc.txt says tcp_keepalive_time is the
interval
> between sending keepalive probes, but doesn't mention
tcp_keepalive_intvl...

tcp starts a keepalive timer for each connection. if the connection is idle
for tcp_keepalive_time seconds, it starts sending probes to the other end.
It sends a maximum of tcp_keepalive_probes each tcp_keepalive_intvl
seconds apart, and if the other end hasnt responded by then, it drops the
connection.

default values:

tcp_keepalive_intvl = 75 seconds
tcp_keepalive_probes = 9
tcp_keepalive_time = 7200 seconds (2 hours)

> The problem I'm trying to track down is ssh connections where the
connection
> times out but the session doesn't go away until a key is pressed.  (I.E.
> blocking reads don't notice the connection going down underneath them,
not
> even if left overnight.)

not clear from the info here whats happening in your case...
(stats?)

> Rob

thanks,
Nivedita



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-11 22:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11 20:51 [DOC PATCH] Re: tcp_keepalive_intvl vs tcp_keepalive_time? Nivedita Singhvi
2002-02-11 22:27 ` Rob Landley
  -- strict thread matches above, loose matches on Subject: below --
2002-02-10  4:40 Nivedita Singhvi
2002-02-10  7:56 ` [DOC PATCH] " Rob Landley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®