<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: netstat CLOSE_WAIT connection in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574149#M831409</link>
    <description>David - CLOSE_WAIT is when the local TCP _has_ received a FIN, and is waiting for the local application to call close() or shutdown().&lt;BR /&gt;&lt;BR /&gt;CLOSE_WAIT can be a valid "send only" state, perhaps the client closed-out an http keepalive connection before the server finished sending all the data and then bothered to check for the read return of zero on the socket.&lt;BR /&gt;&lt;BR /&gt;(FWIW, the remote TCP will be in FIN_WAIT_2 - most likely at least.  It could I suppose be in FIN_WAIT_1, and depending on how it was written, it could even be completely gone, though that is unlikely, and since there is still a controlling socket on this end, does not represent the same issues as FIN_WAIT_2's have historically)&lt;BR /&gt;&lt;BR /&gt;A handful of these are not likely to be a problem.  The way to close them should it become required, would be to terminate the owning process(es).&lt;BR /&gt;&lt;BR /&gt;As possibly already mentioned, CLOSE_WAIT is distinct from TIME_WAIT and tcp_time_wait_interval has no bearing on a connection in CLOSE_WAIT</description>
    <pubDate>Fri, 01 Jul 2005 12:02:15 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2005-07-01T12:02:15Z</dc:date>
    <item>
      <title>netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574145#M831405</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I see some CLOSE_WAIT connections for HP Apache on hpux 11.&lt;BR /&gt;&lt;BR /&gt;There are some 7-8 CLOSE_WAIT connection when i issued "netstat -an" command. Are these connections undesirable ?&lt;BR /&gt;&lt;BR /&gt;If yes, how should we close these connections ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Thu, 30 Jun 2005 08:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574145#M831405</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-06-30T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574146#M831406</link>
      <description>If you restart the APACHE &amp;amp; HP TOMCAT applications do you still see the same error ?&lt;BR /&gt;&lt;BR /&gt;Can you check it out ?</description>
      <pubDate>Thu, 30 Jun 2005 08:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574146#M831406</guid>
      <dc:creator>KVK</dc:creator>
      <dc:date>2005-06-30T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574147#M831407</link>
      <description>This is caused by the client not sending a TCP FIN which leaves the socket in CLOSE_WAIT. There are ways to clean these up using 'ndd', but I don't think 7 to 8 of these is any big problem. Someone else may have a different point of view on that.&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Thu, 30 Jun 2005 08:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574147#M831407</guid>
      <dc:creator>David Child_1</dc:creator>
      <dc:date>2005-06-30T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574148#M831408</link>
      <description>The number is not very big. This really shold be taken care of by client. Looks like client is not sending close to the server.&lt;BR /&gt;&lt;BR /&gt;The ndd parameter, tcp_time_wait_interval decides how long it will wait in TIME_WAIT.&lt;BR /&gt;The default is 60 seconds and looks fine.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 30 Jun 2005 08:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574148#M831408</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-06-30T08:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574149#M831409</link>
      <description>David - CLOSE_WAIT is when the local TCP _has_ received a FIN, and is waiting for the local application to call close() or shutdown().&lt;BR /&gt;&lt;BR /&gt;CLOSE_WAIT can be a valid "send only" state, perhaps the client closed-out an http keepalive connection before the server finished sending all the data and then bothered to check for the read return of zero on the socket.&lt;BR /&gt;&lt;BR /&gt;(FWIW, the remote TCP will be in FIN_WAIT_2 - most likely at least.  It could I suppose be in FIN_WAIT_1, and depending on how it was written, it could even be completely gone, though that is unlikely, and since there is still a controlling socket on this end, does not represent the same issues as FIN_WAIT_2's have historically)&lt;BR /&gt;&lt;BR /&gt;A handful of these are not likely to be a problem.  The way to close them should it become required, would be to terminate the owning process(es).&lt;BR /&gt;&lt;BR /&gt;As possibly already mentioned, CLOSE_WAIT is distinct from TIME_WAIT and tcp_time_wait_interval has no bearing on a connection in CLOSE_WAIT</description>
      <pubDate>Fri, 01 Jul 2005 12:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574149#M831409</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-07-01T12:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574150#M831410</link>
      <description>CLOSE_WAIT connection means that the remote host has sent a FIN (closed the connection) but the process on the local host hasn't.&lt;BR /&gt;&lt;BR /&gt;Attached is a perl script that you can use to close all the connections that are in CLOSE_WAIT state.&lt;BR /&gt;&lt;BR /&gt;This script uses ndd 'tcp_discon_by_addr' to remove a socket using the ip address represented by a hexadecimal number. It creates a 24 byte string that contains the hex representation of the 'quadruple' IP address Local 'IP+Local Port+Remote IP+Remote Port'.&lt;BR /&gt;&lt;BR /&gt;best of luck!</description>
      <pubDate>Fri, 01 Jul 2005 12:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574150#M831410</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-07-01T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574151#M831411</link>
      <description>Sorry I attached the wrong script. Here's what you need.&lt;BR /&gt;&lt;BR /&gt;regards!</description>
      <pubDate>Fri, 01 Jul 2005 12:34:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574151#M831411</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-07-01T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: netstat CLOSE_WAIT connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574152#M831412</link>
      <description>man I wish we'd never shipped that ndd disconnect stuff.  since there is still a socket associated with a CLOSE_WAIT connection, there should never be a need to use the fision-byproduct producing ndd tcp_disconn* stuff - simply terminating the owning process should suffice.  Then get the developers of the owning process application code to fix it so it does not leave connections in CLOSE_WAIT in the first place - except when it is supposed to.&lt;BR /&gt;&lt;BR /&gt;So, before worrying about a CLOSE_WAIT connection, make sure it has been there for a _very_ long time, and even then it may not be a real problem.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jul 2005 12:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-close-wait-connection/m-p/3574152#M831412</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-07-01T12:35:50Z</dc:date>
    </item>
  </channel>
</rss>

