How to reset a connection stuck in CLOSE_WAIT state

cpghost cpghost at cordula.ws
Wed Jun 3 10:41:56 UTC 2009


On Wed, Jun 03, 2009 at 05:38:24PM +0700, Olivier Nicole wrote:
> Hi,
> 
> I am runnig FlexNet license manager on FreeBSD (6.4), this is alinux
> application, but it is running smoothly.
> 
> The problem occurs sometime at stop time, it will not stop cleanly and
> leave a connection in CLOSE_WAIT state. As a result, the ports are not
> freed and the license managerserver cannot restart.
> 
> Is there a simple way to force reset the hanging connection?

/usr/sbin/tcpdrop maybe?

Not sure it would reset/kill the connection immediately though.
You'll have to try it.

> Best regards,
> 
> Olivier

-- 
Cordula's Web. http://www.cordula.ws/


More information about the freebsd-questions mailing list