From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 25 02:56:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AC8A37B401 for ; Wed, 25 Jun 2003 02:56:35 -0700 (PDT) Received: from apache.metrocom.ru (apache.metrocom.ru [195.5.128.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09B1043FBF for ; Wed, 25 Jun 2003 02:56:34 -0700 (PDT) (envelope-from alex@metrocom.ru) Received: from apache (apache [195.5.128.150]) by apache.metrocom.ru (8.12.9/8.12.9) with ESMTP id h5P9uUmm026742; Wed, 25 Jun 2003 13:56:30 +0400 (MSD) Date: Wed, 25 Jun 2003 13:56:30 +0400 (MSD) From: Varshavchick Alexander To: Terry Lambert In-Reply-To: <3EF96FFF.84BF6C1C@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-2.0 required=3.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT_PINE version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How to delete unix socket entries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 09:56:35 -0000 On Wed, 25 Jun 2003, Terry Lambert wrote: > Sockets have to be explicitly closed. They are generally > closed automatically by exit(), which will close all the fd's > a process has open. > > I agree with the previous poster, that it looks like a bug you > will need to fix or workaround. > > It looks like what's happened is that you have a deadly embrace > deadlock, where you've sent data both ways and then exited. > One thing to try might be to either turn off keepalive via > sysctl, or explicitly disable keepalive on the sockets, first > thing after opening them. > > -- Terry > Terry, you're right that all this happened because of the server application core dumped while in the process of sending/receiving data, and that application is fixed so there are no new zombi sockets, but what can I do now with the ones which already exist? How can I delete them now? ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)118-3322, 118-3115(fax)