From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 08:12:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28B5D1065672 for ; Mon, 19 Jul 2010 08:12:04 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B7BCE8FC12 for ; Mon, 19 Jul 2010 08:12:03 +0000 (UTC) Received: by wyf22 with SMTP id 22so4991762wyf.13 for ; Mon, 19 Jul 2010 01:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=jBgDr2yG5bI24ye/GBYI65EhHJ45HsaWB8k5TOTh6Vg=; b=v+aF7hOxQSpkcxeZbxdbnBswOfAqGPKCaMSFEQkY80nkGqV3xyO+vhoqgY77fxl5wx J4enQAovXdm6NztOM2Sor/k+zSUddHLq2VYFW3UYVZLucRq9RMSWaTHQMpZ47defW4xF FyAQzyjVhlsKhtUxDgzgMcMDUPyqkJUdyYw7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PzpBITH0HarGK4gN3Yd+uQLge1IG9c19AN8VFXRBc9lNo5lxEzaSP04uUWW28vCYQA hZSYEwdZPvHJe2lLsN2ZwBB4RJiaUFilmYmRHaVpHVbKFd/mpI760zWmxPJzpuq7lxiz /FU5+ihd+IPwQnGfydM9LS9s4VErKsf1BIaHU= MIME-Version: 1.0 Received: by 10.227.153.211 with SMTP id l19mr3641264wbw.224.1279527122526; Mon, 19 Jul 2010 01:12:02 -0700 (PDT) Received: by 10.216.172.4 with HTTP; Mon, 19 Jul 2010 01:12:02 -0700 (PDT) Date: Mon, 19 Jul 2010 04:12:02 -0400 Message-ID: From: Jim To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: sockets stuck in use X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 08:12:04 -0000 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 0 0 192.168.1.80.42464 192.168.1.2.9612 SYN_SENT tcp4 0 0 192.168.1.80.35742 192.168.1.2.9612 CLOSED tcp4 0 0 192.168.1.80.46116 192.168.1.2.9612 CLOSED tcp4 0 0 192.168.1.80.36792 192.168.1.2.9612 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.. Thanks, -Jim Stapleton