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: SUMMARY: Clearing a Port Date: Thu, 17 Oct 2002 12:37:09 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <03ff01c275fb$70028690$8315000a@shubertorg.com> References: 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 1034872661 32298 80.91.224.249 (17 Oct 2002 16:37:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2002 16:37:41 +0000 (UTC) Cc: alan.nguyen@au.transport.bombardier.com 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 182DeV-0008Oi-00 for ; Thu, 17 Oct 2002 18:37:39 +0200 Original-Received: (qmail 29562 invoked by uid 5); 17 Oct 2002 16:38:19 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29553 invoked by uid 49493); 17 Oct 2002 16:38:18 -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(-0.2/5.0):. Processed in 0.481424 secs); 17 Oct 2002 16:38:18 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 17 Oct 2002 16:38:18 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4400KA6WVPWW@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 17 Oct 2002 12:38:18 -0400 (EDT) Original-Received: from mailhost.Shubertorg.com (mailhost.shubertorg.com [207.246.208.40]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4400998WVKNY@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 17 Oct 2002 12:38:08 -0400 (EDT) Original-Received: from memnoch [207.238.217.205] by mailhost.Shubertorg.com (SMTPD32-7.13) id AA3C5ED0186; Thu, 17 Oct 2002 12:50:04 -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: Dea3c05ed018680d6.SMD X-Note: This E-mail was scanned for spam. Xref: main.gmane.org gmane.os.tru64.managers:2108 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2108 Well, the big thanks go to Martin Adolfsson with the following reply: >Unfortunately I don't know of any useful command for this, but if the >server is an application that is developed by your company/one that you >have the sourcecode for, you might want to ask one of your programmers >to make sure that SO_REUSEADDR is used in the call to bind() (See >section 4.5 of >ftp://rtfm.mit.edu/pub/usenet/news.answers/unix-faq/socket) since there >is a possiblity that will help. So I passed that little tidbit off to a programmer, and an hour later he emailed me saying that he has a fix for the problem, and that the SO_REUSEADDR did it. So thank you very much. I also received a bunch of emails that looked very much like this: >There are a few parameters that may help you in the "inet" subsystem of sysconfigtab, they are > >tcp_keepalive_default >tcp_keepcnt >tcp_keepidle >tcp_keepintvl > >Normally, in good network programming practice, a socket connection when properly set up will >enable the keepalive timer and in the event of a broken connection will clean itself up. >Unfortunately not all applications are written like this so we have the tcp_keepalive_default. >Enabling this parameter (set it to 1) will enable "keepalive" on all sockets created on the system, >this will have the effect that you desire; to clean up broken connections. The default setting of >tcp_keepalive_default is 0 (turned off). Once this is turned on then sockets will be checked after >"keepidle" time and then will be checked for "keepcnt" times; each time seperated by the >"keepintvl". If at the end of all of this there is no socket communications the socket connection will >be cleaned away. Once you set "keepalive" the defaults for the other parameters will not clear a >socket connection for about 2 hours and ten minutes (if I remember right) so you may want to >adjust the keepidle time to something more reasonable (default 2 hours or 14400 half seconds). >For more info check the man page for sys_attrs_inet. Oh, and this is a good one too: >I had a similar situation with an app on disconnect. There are a couple of >parameters you can adjust in sysconfigtab. One is "tcp_keepidle". It's >default is 1500 ticks and It was recommended by HPQ to adjust to 600. The >other was "tcp_keepalive". These, I believe, are documented in the system >configuration and tuning guide but I'm not at the office so I'm not sure. > >After these adjustments to the "inet:" stanza in sysconfigtab (use >sysconfigdb to make the changes), our problem went away. I would like to thank the following for there replies: Blake Roberts, Rodney S, Steve VanDevender, Robert Mulley, Gary Luo, Pat Barrowclough, Benjamin Smith, Dennis Sylvester, and Robert Collins. Jonathan Williams Unix Systems Administrator The Shubert Organization, Inc.