<?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: closed fds seen as LISTENING in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130826#M571963</link>
    <description>While the application does not fork children for new connections and such, does the application daemonize, or fork during its startup processing?&lt;BR /&gt;&lt;BR /&gt;What do you see if you take a tusc trace of the application - either during startup (be sure to set the follow forks option just to be safe :) or during operation?&lt;BR /&gt;&lt;BR /&gt;As for patches to apply to an 11.0 box, well, since 11.0 first shipped in 1997, there have been some TCP/IP patches.  You might want to make sure you are up on some that are recent.</description>
    <pubDate>Mon, 01 Dec 2003 21:07:04 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2003-12-01T21:07:04Z</dc:date>
    <item>
      <title>closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130819#M571956</link>
      <description>HP-UX 11.0 9000/800&lt;BR /&gt;&lt;BR /&gt;We have an interface server which listens on multiple ports. It is required to close all client sockets and base sockets at some point of time. Using netstat we found that the base sockets(listening fds)which are closed are still seen as LISTENING. Glance is however not showing these fds. Any attempt to connect to these ports are successful. Is this a bug? Is there any patch we have to apply?</description>
      <pubDate>Fri, 28 Nov 2003 02:02:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130819#M571956</guid>
      <dc:creator>Samir_10</dc:creator>
      <dc:date>2003-11-28T02:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130820#M571957</link>
      <description>It doesn't looks like to any know problem.&lt;BR /&gt;Do you use the socket caching? &lt;BR /&gt;Did you check with lsof that no process could still have this port opened? ( for instance a child process of the one which closed)&lt;BR /&gt;Usually that sort of things arrive when a child process still have a file handler on the socket.&lt;BR /&gt;For instance if you do&lt;BR /&gt;fd=socket()&lt;BR /&gt;fd1=accept(fd...)&lt;BR /&gt;if (fork())&lt;BR /&gt;{ /* child  do not close the fd */&lt;BR /&gt;...&lt;BR /&gt;} else close(fd1);&lt;BR /&gt;In that case the socket will stay in listen state as long as a child process which had not closed it explicitely is still running&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 05:34:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130820#M571957</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2003-11-28T05:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130821#M571958</link>
      <description>Could it be that inetd is listening on those ports ?&lt;BR /&gt;Try to use something like lsof to find out which process is still listening on those ports at that time...</description>
      <pubDate>Fri, 28 Nov 2003 05:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130821#M571958</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-28T05:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130822#M571959</link>
      <description>&lt;BR /&gt;The server is not forking child processes.&lt;BR /&gt;lsof and glance do not show these fds in their output but netstat shows them as listening. &lt;BR /&gt;An attempt to 'telnet localhost portNum' is successful and netstat shows ESTABLISHED connection on these ports.&lt;BR /&gt;&lt;BR /&gt;Any pointers as to what's going wrong ?</description>
      <pubDate>Fri, 28 Nov 2003 07:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130822#M571959</guid>
      <dc:creator>Samir_10</dc:creator>
      <dc:date>2003-11-28T07:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130823#M571960</link>
      <description>Do the sockets belong to stand-alone servers, or are they created by servers who themselves are forked from others (e.g. like inetd).&lt;BR /&gt;If they are started through inetd you could increase verbosity by toggling it back and forth to/from extended connection logging mode whenever you issue&lt;BR /&gt;/usr/sbin/inetd -b&lt;BR /&gt;Then do a tail -f on your syslog.log or wherever your syslogd is writing output for facility daemon.&lt;BR /&gt;It will also print the PIDs of your freshly spawned servers.</description>
      <pubDate>Fri, 28 Nov 2003 07:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130823#M571960</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-11-28T07:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130824#M571961</link>
      <description>Ralph,&lt;BR /&gt;&lt;BR /&gt;The sockets are created by a stand-laone server.&lt;BR /&gt;&lt;BR /&gt;--Samir</description>
      <pubDate>Fri, 28 Nov 2003 07:41:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130824#M571961</guid>
      <dc:creator>Samir_10</dc:creator>
      <dc:date>2003-11-28T07:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130825#M571962</link>
      <description>Then it sounds to me as if your server though being signaled to terminate is still caught in its accept() loop since you wrote that it would still establish new connect requests.&lt;BR /&gt;Are you sure you have sent the right process the right signal?</description>
      <pubDate>Fri, 28 Nov 2003 08:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130825#M571962</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-11-28T08:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130826#M571963</link>
      <description>While the application does not fork children for new connections and such, does the application daemonize, or fork during its startup processing?&lt;BR /&gt;&lt;BR /&gt;What do you see if you take a tusc trace of the application - either during startup (be sure to set the follow forks option just to be safe :) or during operation?&lt;BR /&gt;&lt;BR /&gt;As for patches to apply to an 11.0 box, well, since 11.0 first shipped in 1997, there have been some TCP/IP patches.  You might want to make sure you are up on some that are recent.</description>
      <pubDate>Mon, 01 Dec 2003 21:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130826#M571963</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-12-01T21:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130827#M571964</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;No the application does not daemonize or fork&lt;BR /&gt;during startup.&lt;BR /&gt;&lt;BR /&gt;It is observerd that on the first close of the basesocket, the netstat shows the ports as still listening. &lt;BR /&gt;&lt;BR /&gt;Upon introduction of another close of the basesocket just after the first one, perror returns 'Bad file number' and netstat does not show up the ports as listening !!.&lt;BR /&gt;&lt;BR /&gt;I feel we are missing on some network related patches on HP-UX 11.0. &lt;BR /&gt;&lt;BR /&gt;Pl. help.&lt;BR /&gt;&lt;BR /&gt;--Samir</description>
      <pubDate>Mon, 01 Dec 2003 23:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130827#M571964</guid>
      <dc:creator>Samir_10</dc:creator>
      <dc:date>2003-12-01T23:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: closed fds seen as LISTENING</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130828#M571965</link>
      <description>I have no idea if it will fix your problem, and do be _sure_ to read all the warnings and such, but here is a list of the latest ARPA transport patch and its dependencies for 11.0.&lt;BR /&gt;&lt;BR /&gt;PHCO_23651  fsck_vxfs(1M) cumulative patch&lt;BR /&gt;PHCO_24437  LVM commands cumulative patch&lt;BR /&gt;PHCO_27375  cumulative SAM/ObAM patch&lt;BR /&gt;PHCO_29380  user/group(add/mod/del)(1M) cumulative patch&lt;BR /&gt;PHKL_18543  PM/VM/UFS/async/scsi/io/DMAPI/JFS/perf patch&lt;BR /&gt;PHKL_20016  2nd CPU not recognized in G70/H70/I70&lt;BR /&gt;PHKL_23409  NFS, Large Data Space, kernel memory leak&lt;BR /&gt;PHKL_28150  LVM Cumulative Patch w/Performance Upgrades&lt;BR /&gt;PHKL_28593  VxFS 3.1 cumulative patch: CR_EIEM&lt;BR /&gt;PHKL_29385  IDS/9000; syscalls; eventports; dup2() race&lt;BR /&gt;PHKL_29434  POSIX AIO;getdirentries;MVFS;rcp;mmap/IDS;&lt;BR /&gt;PHKL_29648  Probe,IDDS,PM,VM,PA-8700,AIO,T600,FS,PDC,CLK&lt;BR /&gt;PHNE_27902  Cumulative STREAMS Patch&lt;BR /&gt;PHNE_28538  cumulative ARPA Transport patch&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Dec 2003 12:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/closed-fds-seen-as-listening/m-p/3130828#M571965</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-12-02T12:38:28Z</dc:date>
    </item>
  </channel>
</rss>

