From: Cesar Eduardo Barros <cesarb@nitnet.com.br>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: TCP keepalive seems to send to only one port
Date: Sun, 24 Dec 2000 12:12:28 -0200 [thread overview]
Message-ID: <20001224121228.A340@flower.cesarb> (raw)
In-Reply-To: <20001223213156.A1947@flower.cesarb> <20001224101455.A11662@gruyere.muc.suse.de>
In-Reply-To: <20001224101455.A11662@gruyere.muc.suse.de>; from ak@suse.de on Sun, Dec 24, 2000 at 10:14:55AM +0100
On Sun, Dec 24, 2000 at 10:14:55AM +0100, Andi Kleen wrote:
> On Sat, Dec 23, 2000 at 09:31:56PM -0200, Cesar Eduardo Barros wrote:
> >
> > 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.
>
> I just tried it and it works fine here with 2.4.0-test13-pre
>
> You should be aware that the sysctls are only picked up after a timer timeout
> or when a socket is newly created. When the sockets are already active it
> takes a timeout for them to take effect. The default timeout is 2 hours.
>
I noticed that, so I exited the program and reloaded it after each change. I
still don't know why it worked only with the first socket here (both sockets
are opened by the same program). Maybe something changed in the networking code
since test10?
--
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/
next prev parent reply other threads:[~2000-12-24 14:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-12-27 2:00 Bernd Eckenfels
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001224121228.A340@flower.cesarb \
--to=cesarb@nitnet.com.br \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.