From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,6a6c20baccc2a42f X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Sender: Rick Jones From: Rick Jones Subject: Re: How to kill a CLOSE_WAIT state socket? Newsgroups: comp.unix.tru64 References: Organization: the Unofficial HP User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (HP-UX/B.11.11 (9000/785)) Message-ID: Date: Mon, 04 Apr 2005 21:14:49 GMT NNTP-Posting-Host: 15.244.44.58 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1112649289 15.244.44.58 (Mon, 04 Apr 2005 14:14:49 PDT) NNTP-Posting-Date: Mon, 04 Apr 2005 14:14:49 PDT Xref: g2news1.google.com comp.unix.tru64:642 Jeong BG 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...