From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9601300835.AA30304@foo.garply.com> Date: Tue, 30 Jan 96 08:32:09 +0000 (PSTPDT) From: Leo Dittemore Subject: Ports left in CLOSE_WAIT State I am running Metainfo DNS 1.2, Netscape Commerce Server 1.1, and NTmail V3.0.6 on an AXP 150. I had noticed that the system would sometimes hang when I would restart Netscape. The hang would start with the Restart process never completing. Afterward, new processes could not be started. The system would allow existing processes to be killed if a console window had been opened before the restart or using the task list. But the system could not be shutdown except via power off. Then I happened to look at the NETSTAT output and found several hundred ports left in CLOSE_WAIT state. All of these ports are attached to my system with a port number and to the remote system with the name "domain". The remote servers are my ISP's name servers. These servers are set as Primary and Secondary name server for my ISDN connection. They act as Secondaries to my system as Primary domain definitions. I cannot honestly say if this is a new phenonenon or not as I do not remember running NETSTAT before this. Deciding therefore these ports are somehow related to my Named32 process I stopped the DNS process using the Metainfo CPL applet. The service stops and the ports go away. However the next time I try to stop the DNS service the system hangs as described. I try again with the exact same results. I then try to stop the DNS process using the Services applet. This time the ports go away and I have not been able to hang the system using this method. I asked Metatinfo about this problem. Their response has been: >The problem is that active services using the TCP Kernel have to be >restarted after "cycling" another Service using TCP (especially true for >LISTENER applications/services. The reason is that once the app/service is >up and running the address/port numbers as resolved to "real" network >addressses is cached and not "re-resolved". The "real" network addresses >"within" a machine are created at run time and can be different from one >start to another. There is not much we can do about this as it is >"performed" by our friend the NT network kernel. > >(This message compliments of one of our developers-I hope you understand it) > >This is about all the info we have. You may have to look elsewhere if you >require more. > To me they are saying that the kernal cannot remember which incoming ports were established prior resolution of the address. Since the kernal is responisble for process and port? deletion it is reponsible for leaving the ports active. However the response does not say anything about stopping the Named32 process causing a system hang. Is anyone else expericencing this problem? Clearing the ports seems to have eliminated the hang when restarting Netscape. I have been clearing the ports several times a day (3-4) as usage is increasing (so at least someting is working). Is there any way to do this with a batch job? Everything else is woring fine. Mail is flowing, names are resolved, and HTTP service requests are fulfilled. But at times this is more than annoying. Any help greatly appriciated, Leo Dittemore http://www.webconnections.com/leo/ld.htm