From owner-freebsd-questions@FreeBSD.ORG Wed Jun 3 10:41:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3608310656C2 for ; Wed, 3 Jun 2009 10:41:56 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 82E3A8FC0C for ; Wed, 3 Jun 2009 10:41:55 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id C70F03540D; Wed, 3 Jun 2009 12:41:51 +0200 (CEST) Date: Wed, 3 Jun 2009 12:41:51 +0200 From: cpghost To: Olivier Nicole Message-ID: <20090603104151.GD1349@phenom.cordula.ws> References: <200906031038.n53AcO36073173@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200906031038.n53AcO36073173@banyan.cs.ait.ac.th> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-questions@freebsd.org Subject: Re: How to reset a connection stuck in CLOSE_WAIT state X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 10:41:56 -0000 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/