From owner-freebsd-net@FreeBSD.ORG Wed Jul 18 07:24:00 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B25D216A402; Wed, 18 Jul 2007 07:24:00 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 6311813C471; Wed, 18 Jul 2007 07:24:00 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=AEeEBqPBJVT5QbrbzoUOngE5RPGTgCb5QiSNkL04NK1PW02zdK52ahQJIBW9IrE0vdDl5sw95LcAfDlUG0jcu2uhsq3NsUiqUXBLaNBWAWaLGvg6PhBlRQpGuwHXMYVRdP4bDzzL/LO/Xy3mwM8RGafS2J5TWWDiuJLdZABij/k=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1IB3t7-000H2H-JQ; Wed, 18 Jul 2007 11:23:57 +0400 Date: Wed, 18 Jul 2007 11:23:52 +0400 From: Eygene Ryabinkin To: Andre Oppermann Message-ID: <20070718072352.GE4053@void.codelabs.ru> References: <469D4C9D.7090302@ironport.com> <469D4FB6.9040609@elischer.org> <3DBBD4E3-ABEA-451A-8E6A-02E9CBAD6A37@mac.com> <20070718055228.GA4053@void.codelabs.ru> <469DB9EB.3090703@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <469DB9EB.3090703@freebsd.org> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-3.0 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 Cc: Julian Elischer , FreeBSD Net , Julian Elischer Subject: Re: Wierd networking. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 07:24:00 -0000 Andre, good day. Wed, Jul 18, 2007 at 08:57:47AM +0200, Andre Oppermann wrote: > >Seems like it is the effect of the SS_NOFDREF check in the > >netinet/tcp_input.c, at least it is present in the rev. 1.281.2.5. > >See the post > > http://lists.freebsd.org/pipermail/freebsd-current/2007-July/074837.html > >I believe it discuisses the same problem, but for -CURRENT. In > >short, Squid child closes the descriptor, so connection is present > >in the TCP/IP stack only. And SS_NOFDREF check provokes RST and > >invokes tcp_close(). > > I think your analysis is correct. Have to find out who to deal properly > with a closed socket before the TCP is closed as well. OK, please, drop a letter when you will produce some patch or will find out how to deal with this -- I am keen to test and/or discuiss. Thank you! -- Eygene