<?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: Socket connection release in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473844#M598089</link>
    <description>James is right, you might be faced with a system reboot to clear this problem.  However, you did not specify if you were running HP-UX 11.00 or 10.20.  &lt;BR /&gt;&lt;BR /&gt;On 10.20, the only way to clear a port in use where the application using the port did not clear it is to reboot.&lt;BR /&gt;&lt;BR /&gt;However starting with 10.30 and on 11.00 you can use ndd and tcp_discon_by_addr to free up a hung TCP connected port, even if the process that owned the port is no longer running.&lt;BR /&gt;&lt;BR /&gt;You will need the full IP and PORT number for both sides of the connection.  This needs to be converted to a 32 byte hex number.  But it usually is less intrusive than a full system reboot.</description>
    <pubDate>Mon, 08 Jan 2001 22:05:46 GMT</pubDate>
    <dc:creator>Craig Gilmore</dc:creator>
    <dc:date>2001-01-08T22:05:46Z</dc:date>
    <item>
      <title>Socket connection release</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473842#M598087</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you known how to force a socket release ?&lt;BR /&gt;&lt;BR /&gt;Our problem is that sometimes after a server&lt;BR /&gt;crash, the port is not release and we can't &lt;BR /&gt;restart this software. So we need to force &lt;BR /&gt;release of this port at system level.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Herve&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Dec 2000 10:21:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473842#M598087</guid>
      <dc:creator>Herve BRANGIER</dc:creator>
      <dc:date>2000-12-14T10:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Socket connection release</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473843#M598088</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You may be faced with a reboot to clear the port. &lt;BR /&gt;&lt;BR /&gt;While 'netstat -an' will show you the ports in use, you will need 'lsof' to determine what process is bound to the port. &lt;BR /&gt;&lt;BR /&gt;See also, my comments in this thread: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xacfe5f260cafd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xacfe5f260cafd4118fef0090279cd0f9,00.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;A very good discussion of what you are seeing can be found in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xdc968d77ef20d411b66300108302854d!1,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xdc968d77ef20d411b66300108302854d!1,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Dec 2000 13:28:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473843#M598088</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-12-14T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Socket connection release</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473844#M598089</link>
      <description>James is right, you might be faced with a system reboot to clear this problem.  However, you did not specify if you were running HP-UX 11.00 or 10.20.  &lt;BR /&gt;&lt;BR /&gt;On 10.20, the only way to clear a port in use where the application using the port did not clear it is to reboot.&lt;BR /&gt;&lt;BR /&gt;However starting with 10.30 and on 11.00 you can use ndd and tcp_discon_by_addr to free up a hung TCP connected port, even if the process that owned the port is no longer running.&lt;BR /&gt;&lt;BR /&gt;You will need the full IP and PORT number for both sides of the connection.  This needs to be converted to a 32 byte hex number.  But it usually is less intrusive than a full system reboot.</description>
      <pubDate>Mon, 08 Jan 2001 22:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473844#M598089</guid>
      <dc:creator>Craig Gilmore</dc:creator>
      <dc:date>2001-01-08T22:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Socket connection release</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473845#M598090</link>
      <description>sigh - i would suggest that folks not get into the habit of using the unsupported tcp_discon_mumble mechanisms to clear perceived hung ports. knuth only knows what sort of havoc it could wreak.&lt;BR /&gt;&lt;BR /&gt;if an application will not restart while there are still TCP connections in various states, it indicates a bug in that application. Specifically, the application should be using setsockopt() to set SO_REUSEADDR _before_ it tries to bind() to its well-known port number.&lt;BR /&gt;&lt;BR /&gt;This will allow the app to be restarted while there are still old connections laying around. The only place it will not work is if the old instance of the app is still running and still has a TCP endpoint in the LISTEN state bound to that port number.&lt;BR /&gt;&lt;BR /&gt;So, don't treat  the symptom, cure the disease - get the app fixed.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jan 2001 19:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-connection-release/m-p/2473845#M598090</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-01-12T19:42:46Z</dc:date>
    </item>
  </channel>
</rss>

