Operating System - HP-UX
1753814 Members
7613 Online
108805 Solutions
New Discussion юеВ

Re: CLOSE_WAIT killing connections (that old chestnut)

 
Adam Noble
Super Advisor

CLOSE_WAIT killing connections (that old chestnut)

Hi all,

I've had this problem many times and there seems to be conflicting info out there. I have two processes that wont die. I have used lsof and can see that the processes have a number of connections related to them which are in CLOSE_WAIT state. Is there actually anyway of removing them. I've seen previous quite old threads that suggest its possible but I think the solution was 11.00 and this is 11.11 as the commands do not work.

Is this possible I appreciate it may not be a good idea anyway and suggests poor coding.

Cheers
3 REPLIES 3
Peter Godron
Honored Contributor

Re: CLOSE_WAIT killing connections (that old chestnut)

Steven E. Protter
Exalted Contributor

Re: CLOSE_WAIT killing connections (that old chestnut)

Shalom,

On systems not exposed to the Internet its almost always bad application code. ndd can be used to change the timeout from the default 60 seconds.

On internet exposed systems it could be a malicious attempt to keep a network connection open even if a firewall has cut the IP off. This should be monitored and if possible the process killed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rick jones
Honored Contributor

Re: CLOSE_WAIT killing connections (that old chestnut)

What has been used to try to terminate the processes?
there is no rest for the wicked yet the virtuous have no pillows