[KLUG Members] CLOSE_WAIT tcp connections

greenproc greenproc at charter.net
Mon Jan 9 05:08:03 EST 2006


>From my understanding of TCP/IP, CLOSE_WAIT means that the socket has
received a FIN from the other end of the TCP connection, and has sent an
ACK back in response (as it should), but the application holding the
local socket (your end) has not yet released the socket.

There is probably a better way, but you could always write a cron script
to kill any offending process id's found by netstat.  It really depends
on what application(s) aren't releasing the sockets, why, and how often.



agencies_ad1 at sancharnet.in wrote:
> Hello
> 
> Is there a way in LINUX  to terminate CLOSE_WAIT tcp connections. i.e. netstat
> -ant | grep -i close_wait this shows close_wait connections When running lsof
> -i | grep -i close_wait ( produces a list of processes in close_wait state) Is
> there any way of automatically terminating the close_wait connections and its
> processes after so many minutes ?
> 
> Thanks
> 
> Regards,
> 
> Komal
> 
> ----------------------------------------------------------------
> This message was sent using NWebmail, BSNL's Webmail Program
> 
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 
> 


More information about the Members mailing list