Date: Tue, 20 Jul 2010 06:55:35 -0400 From: Jim <stapleton.41@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: sockets stuck in use Message-ID: <AANLkTin5IiuRYy4btiVppMhmZgqBmMN9cxWaY5yxLPbS@mail.gmail.com> In-Reply-To: <AANLkTilJ5NfWUm1fKduJkloC2pOEDlm2sDogsQ_MW7Vb@mail.gmail.com> References: <AANLkTinsL3oGBdO7dqv0Iwamlpp89lzwUcJFgspPLhFq@mail.gmail.com> <AANLkTilJ5NfWUm1fKduJkloC2pOEDlm2sDogsQ_MW7Vb@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 19, 2010 at 11:04 PM, Adam Vande More <amvandemore@gmail.com> w= rote: > On Mon, Jul 19, 2010 at 3:12 AM, Jim <stapleton.41@gmail.com> wrote: >> >> I was working on an application I've been developing, and I closed the >> last instance a bit over 12 hours ago, but some of the sockets are >> still stuck in use: >> [sjss@elrond ~/dev/pipe/scripts]$ netstat | grep -e 'tcp' | grep 9612 >> tcp4 =A0 =A0 =A0 0 =A0 =A0 =A00 192.168.1.80.42464 =A0 =A0 192.168.1.2.9= 612 =A0 =A0 =A0 SYN_SENT >> tcp4 =A0 =A0 =A0 0 =A0 =A0 =A00 192.168.1.80.35742 =A0 =A0 192.168.1.2.9= 612 =A0 =A0 =A0 CLOSED >> tcp4 =A0 =A0 =A0 0 =A0 =A0 =A00 192.168.1.80.46116 =A0 =A0 192.168.1.2.9= 612 =A0 =A0 =A0 CLOSED >> tcp4 =A0 =A0 =A0 0 =A0 =A0 =A00 192.168.1.80.36792 =A0 =A0 192.168.1.2.9= 612 =A0 =A0 =A0 CLOSED >> >> >> Is there any way to get rid of them without restarting the machine? I >> was playing with sockopt SO_KEEPALIVE and SO_LINGER when I caused this >> issue.. > > sockstat(1) will tell you process that has the socket open, can you kill = it > from there? > > -- > Adam Vande More > Thanks... That told me "who" to kill
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin5IiuRYy4btiVppMhmZgqBmMN9cxWaY5yxLPbS>