Date: Thu, 18 Apr 2002 07:36:40 +1000 From: Edwin Groothuis <edwin@mavetju.org> To: Marc Hunter <hunter@hunter.net> Cc: freebsd-questions@freebsd.org Subject: Re: Killing a FIN_WAIT_2 Message-ID: <20020418073640.N56548@k7.mavetju.org> 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 References: <4.2.0.58.20020417121658.00954290@192.168.0.64>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020418073640.N56548>