From owner-freebsd-questions Wed Apr 17 14:36:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id DF81537B491 for ; Wed, 17 Apr 2002 14:36:02 -0700 (PDT) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 7AD4A2B671; Wed, 17 Apr 2002 23:36:00 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id 60A7C33B; Thu, 18 Apr 2002 07:36:40 +1000 (EST) Date: Thu, 18 Apr 2002 07:36:40 +1000 From: Edwin Groothuis To: Marc Hunter Cc: freebsd-questions@freebsd.org Subject: Re: Killing a FIN_WAIT_2 Message-ID: <20020418073640.N56548@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Marc Hunter , freebsd-questions@freebsd.org References: <4.2.0.58.20020417121658.00954290@192.168.0.64> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4.2.0.58.20020417121658.00954290@192.168.0.64>; from hunter@hunter.net on Wed, Apr 17, 2002 at 12:18:35PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Apr 17, 2002 at 12:18:35PM -0700, Marc Hunter wrote: > I have a tcp connection that's sitting in FIN_WAIT_2 according to netstat > -a, and it's locking up the port, preventing me from restarting my server > app... I know those connections time out after some time, but is there any > way of explicitly killing it? (other than rebooting) There is no such thing. You should be able to restart the server anyway if you set the SO_REUSEADDR on the socket: setsockopt(fd4,SOL_SOCKET,SO_REUSEADDR,(char *)&x,sizeof(x)) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: bash$ :(){ :|:&};: | http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message