Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2009 12:41:51 +0200
From:      cpghost <cpghost@cordula.ws>
To:        Olivier Nicole <on@cs.ait.ac.th>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to reset a connection stuck in CLOSE_WAIT state
Message-ID:  <20090603104151.GD1349@phenom.cordula.ws>
In-Reply-To: <200906031038.n53AcO36073173@banyan.cs.ait.ac.th>
References:  <200906031038.n53AcO36073173@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090603104151.GD1349>