sockets stuck in use

Jim stapleton.41 at
Mon Jul 19 08:12:04 UTC 2010

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 at elrond ~/dev/pipe/scripts]$ netstat | grep -e 'tcp' | grep 9612
tcp4       0      0       SYN_SENT
tcp4       0      0       CLOSED
tcp4       0      0       CLOSED
tcp4       0      0       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

-Jim Stapleton

More information about the freebsd-questions mailing list