Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Rick Jones <foo@bar.baz.invalid>
Subject: Re: How to kill a CLOSE_WAIT state socket?
Date: Mon, 04 Apr 2005 21:14:49 GMT	[thread overview]
Message-ID: <d7i4e.2932$%V7.140@news.cpqcorp.net> (raw)
In-Reply-To: c6d875ee.0504032035.3d29d893@posting.google.com

Jeong BG <as@anysyskorea.com> wrote:
> Using netstat -a , I can see that the open socket is in CLOSE_WAIT
> state, and I don't know how to check how much time it is going to be
> in such state, and how can I 'kill' this socket. of course without
> rebooting my web server.  someone told me using 'lsof' command.  but
> My server(Tru64 4.0D) didn't display socket state.

CLOSE_WAIT is the state the TCP endpoint enters when it recieves and
ACKnowledges a FINished segment from the remote (which is how the
remote says it will be sending no more data).  It is still possible
for the local (CLOSE_WAIT) endpoint to _send_ data to the remote
(which will be in FIN_WAIT_2) and the connection will remain in
CLOSE_WAIT until the application (which has been notified of the
remote's sending of the FIN with a return value of "0" from a receive
call) calls close() or shutdown() against the socket.

rick jones
-- 
denial, anger, bargaining, depression, acceptance, rebirth...
                                     where do you want to be today?
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to raj in cup.hp.com  but NOT BOTH...


      reply	other threads:[~2005-04-04 21:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04  4:35 How to kill a CLOSE_WAIT state socket? Jeong BG
2005-04-04 21:14 ` Rick Jones [this message]
read-only archive

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