All of lore.kernel.org
 help / color / mirror / Atom feed
* TCP keepalive seems to send to only one port
@ 2000-12-23 23:31 Cesar Eduardo Barros
  2000-12-24  0:19 ` David Schwartz
  2000-12-24  9:14 ` Andi Kleen
  0 siblings, 2 replies; 13+ messages in thread
From: Cesar Eduardo Barros @ 2000-12-23 23:31 UTC (permalink / raw)
  To: linux-kernel


I've been doing some experiments with the keepalive code in 2.4.0-test10 here
(I want to avoid the 2.2.x NAT I'm using (for which I don't have root) from
 timing out my connections). To test it, I reduced both tcp_keepalive_time and
tcp_keepalive_intvl to 1. Using ethereal, I saw that the keepalives were sent
as expected, but only for one of the two idle TCP connections I had to a given
host (I was testing with two remote hosts, each with two idle TCP connections,
one in port 5500 and the other in port 5501). I only saw activity on 5500, yet
netstat told me both were still active.

This means that keepalive is useless for keeping alive more than one connection
to a given host.

-- 
Cesar Eduardo Barros
cesarb@nitnet.com.br
cesarb@dcc.ufrj.br
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: TCP keepalive seems to send to only one port
@ 2000-12-27  2:00 Bernd Eckenfels
  0 siblings, 0 replies; 13+ messages in thread
From: Bernd Eckenfels @ 2000-12-27  2:00 UTC (permalink / raw)
  To: linux-kernel

In article <20001225224654.A2080@flower.cesarb> you wrote:
> Well, consider the scenario of an application which opens a control connection
> and a data connection, and the data connection remains idle for some hours
> while you get to the beginning of the queue, and then the transfer starts. The
> data connection is not open forever, and the timeout (and the periodic pings)
> is on the control connection.

The other way around (idle control connection) is trapped by Linux FTP
Masquerading, it will make sure the control connection does not time out, as
long as the Data connection is transmitting Data. This is even done in PASV
mode (thats why the FTP Masq mdule is uefull even in PASV mode).

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-12-27  2:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-23 23:31 TCP keepalive seems to send to only one port Cesar Eduardo Barros
2000-12-24  0:19 ` David Schwartz
2000-12-24  0:38   ` Cesar Eduardo Barros
2000-12-24  1:52     ` James Morris
2000-12-24  2:20       ` Cesar Eduardo Barros
2000-12-25 15:27         ` Igmar Palsenberg
2000-12-25 14:58           ` Cesar Eduardo Barros
2000-12-26  0:33     ` David Schwartz
2000-12-26  0:46       ` Cesar Eduardo Barros
2000-12-26  0:59         ` David Schwartz
2000-12-24  9:14 ` Andi Kleen
2000-12-24 14:12   ` Cesar Eduardo Barros
  -- strict thread matches above, loose matches on Subject: below --
2000-12-27  2:00 Bernd Eckenfels

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.