netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zoltan Kiss <zoltan.kiss@citrix.com>
To: <netdev@vger.kernel.org>
Cc: Joby Poriyath <joby.poriyath@citrix.com>
Subject: TCP socket timeout after IP address is removed
Date: Fri, 25 Jul 2014 21:04:16 +0100	[thread overview]
Message-ID: <53D2B840.4040308@citrix.com> (raw)

Hi,

We have a timout problem on TCP sockets, which probably has some trivial 
solution, but I couldn't figure it out after hours of staring at the 
code, so hopefully someone can shed some light on it here.
The scenario is the following:
- I start an ssh connection from host A to B, it works fine
- netstat shows the socket is using local address K
- then I remove local address K, and with DHCP I get a new one, L on a 
different interface (interfaces are always up during the whole time)
- the socket is still alive, but my SSH connection doesn't transmit 
anything, obviously, as netstat says it is still using IP address K
- ftrace showed me the data goes through the TCP layer and finally the 
IP layer drops it because the route is no longer valid

On 3.10 kernel it times out after ~15 minutes or so, which isn't too 
good for me. On 2.6.32 it times out after a couple of minutes, and I 
would like to achieve the same, but I couldn't figure out how. Could 
anyone give me some guidance?

Regards,

Zoltan Kiss

             reply	other threads:[~2014-07-25 20:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-25 20:04 Zoltan Kiss [this message]
2014-07-25 23:31 ` TCP socket timeout after IP address is removed Yuchung Cheng
2014-07-25 23:59   ` Cong Wang

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=53D2B840.4040308@citrix.com \
    --to=zoltan.kiss@citrix.com \
    --cc=joby.poriyath@citrix.com \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).