netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shan Wei <shanwei@cn.fujitsu.com>
To: 杨硕 <shanqn@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: why does the tcp_time_wait() call tcp_done(sk)?
Date: Thu, 25 Mar 2010 18:01:04 +0800	[thread overview]
Message-ID: <4BAB3460.4000906@cn.fujitsu.com> (raw)
In-Reply-To: <ffe582101003242024o23ddbdc9w7aaffde382c3da8b@mail.gmail.com>

杨硕 wrote, at 03/25/2010 11:24 AM:
> that means the connection has been closed?
> Does kernel think like that???
> we can use "STATE_TRACE" to see FIN_WAIT_2--->CLOSE rather than
> FIN_WAIT_2-->TIME_WAIT-->CLOSE.

There are three functions to call tcp_time_wait() with FIN_WAIT_2.
Can you provide the fully function call stack?


tcp_close  tcp_rcv_state_process   
   \        | 
    \       |
     \      |
      -|/  \|/
    tcp_time_wait
         /|\
          |
          |
 tcp_keepalive_timer


-- 
Best Regards
-----
Shan Wei

      reply	other threads:[~2010-03-25 10:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25  3:24 why does the tcp_time_wait() call tcp_done(sk)? 杨硕
2010-03-25 10:01 ` Shan Wei [this message]

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=4BAB3460.4000906@cn.fujitsu.com \
    --to=shanwei@cn.fujitsu.com \
    --cc=netdev@vger.kernel.org \
    --cc=shanqn@gmail.com \
    /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).