From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonathan Williams Newsgroups: gmane.os.tru64.managers Subject: UPDATE: Clearing a port Date: Wed, 16 Oct 2002 18:11:16 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <035801c27560$f291d930$8315000a@shubertorg.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034806308 22370 80.91.224.249 (16 Oct 2002 22:11:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2002 22:11:48 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 181wOJ-0005of-00 for ; Thu, 17 Oct 2002 00:11:47 +0200 Original-Received: (qmail 18046 invoked by uid 5); 16 Oct 2002 22:12:24 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 18037 invoked by uid 49493); 16 Oct 2002 22:12:24 -0000 Original-Received: from jonathw@shubertorg.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.8/5.0):. Processed in 0.43494 secs); 16 Oct 2002 22:12:24 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 16 Oct 2002 22:12:24 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4300GLIHON2W@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 16 Oct 2002 18:12:23 -0400 (EDT) Original-Received: from mailhost.Shubertorg.com (mailhost.shubertorg.com [207.246.208.40]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4300DO4HO8BF@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 16 Oct 2002 18:12:09 -0400 (EDT) Original-Received: from memnoch [207.238.217.205] by mailhost.Shubertorg.com (SMTPD32-7.13) id A7092AF0292; Wed, 16 Oct 2002 18:24:09 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Priority: 3 X-MSMail-priority: Normal X-Declude-Sender: jonathw@shubertorg.com [207.238.217.205] X-Declude-Spoolname: De70902af0292043e.SMD X-Note: This E-mail was scanned for spam. Xref: main.gmane.org gmane.os.tru64.managers:2100 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2100 Ok...one of the programers read my last email, and didn't feel I explained the problem properly, so here is the same problem worded differently: The problem is sometimes the client side does not close the socket even when the server application is dead. ps will show that the server is gone. However, [ netstat -an | grep 41797 ] reveals that the client still holds on to the connection with a FIN_WAIT_2 state. tcp 0 0 10.0.21.27.41797 10.0.21.127.1179 FIN_WAIT_2 My guess, this should clear itself after about 10 minutes. When the client releases the connection, the state will be TIME_WAIT for about 2 to 20 seconds tcp 0 0 10.0.21.27.41797 10.0.21.127.1179 TIME_WAIT Question: I don't want to wait; how do I force these lingering connection shadows to disappear. Note: netstat -z claims to kill everything, which is not acceptable. Jonathan Williams Unix Systems Administrator The Shubert Organization, Inc. ----- Original Message ----- From: "Jonathan Williams" To: Sent: Wednesday, October 16, 2002 4:46 PM Subject: Clearing a port > It's a simple enough question. We are running Tru64 5.1 and 5.1a on ES40 and > ES45 machines. Is there a command to clear out a port? Basically, what > happened today was that one of our production pieces of software goes through a > certain port. This application got kind of hung up, and we couldn't get it > started again. The reason turned out to be that the last person who accessed > this program was still connected to the port. We had to actually go to that > person's machine and turn it off to disconnect them from the port so that our > application would come back up. > > Is there a command that would have disconnected this computer from this port > without having to track down the computer? I'm sure there is...seems like > something people might need to do now and again. TIA > > Jonathan Williams > Unix Systems Administrator > The Shubert Organization, Inc. >