From owner-freebsd-questions@FreeBSD.ORG Wed Jun 3 10:38:26 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 0B60D106566C for ; Wed, 3 Jun 2009 10:38:26 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 6D2A08FC17 for ; Wed, 3 Jun 2009 10:38:25 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.13.1) with ESMTP id n53AYBD1019706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Jun 2009 17:34:11 +0700 (ICT) (envelope-from on@cs.ait.ac.th) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.3/8.14.3/Submit) id n53AcO36073173; Wed, 3 Jun 2009 17:38:24 +0700 (ICT) (envelope-from on) Date: Wed, 3 Jun 2009 17:38:24 +0700 (ICT) Message-Id: <200906031038.n53AcO36073173@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-questions@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: 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:38:26 -0000 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