Date: Fri, 17 Aug 2001 14:23:23 +0200 From: sthaug@nethelp.no To: bob@buckhorn.net Cc: jan@digitaldaemon.com, FreeBSD-Questions@FreeBSD.org, FreeBSD-ISP@FreeBSD.org Subject: Re: Killing TCP/IP connection. Message-ID: <54706.998051003@verdi.nethelp.no> In-Reply-To: Your message of "Fri, 17 Aug 2001 06:41:16 -0500" References: <3B7D02DC.546A2E50@buckhorn.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Hi, is there a way to force and end to a TCP/IP connection that shows > > with netstat -na ? > > Something like kill -HUP or -kill -TERM, but then on a socket? <g> > > > Use sockstat -4. It will give you the PID of the offending connection. > Then you can kill it. Unfortunately, you *don't* always want to kill the process - think of a server process handling many clients connections. You want to kill the connection to *one* client, but not the rest. Steinar Haug, Nethelp consulting, sthaug@nethelp.no 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?54706.998051003>