Re: How to reset a connection stuck in CLOSE_WAIT state

2009-06-03 Thread Jeff Laine
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?
> 
> Best regards,
> 
> Olivier


I think tcpdrop(8) can handle that.

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to reset a connection stuck in CLOSE_WAIT state

2009-06-03 Thread cpghost
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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


How to reset a connection stuck in CLOSE_WAIT state

2009-06-03 Thread Olivier Nicole
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?

Best regards,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"