From owner-freebsd-net@FreeBSD.ORG Tue Jun 14 05:57:48 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 068D1106564A for ; Tue, 14 Jun 2011 05:57:48 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 673E48FC17 for ; Tue, 14 Jun 2011 05:57:46 +0000 (UTC) Received: (qmail 46406 invoked from network); 14 Jun 2011 04:34:56 -0000 Received: from localhost (HELO [127.0.0.1]) ([127.0.0.1]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 14 Jun 2011 04:34:56 -0000 Message-ID: <4DF6F21B.2040609@freebsd.org> Date: Tue, 14 Jun 2011 07:31:07 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Kip Macy References: <86mxhleq1q.fsf@kopusha.home.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Mikolaj Golub , freebsd-net@freebsd.org Subject: Re: Automatic receive buffer sizing works only for connections in ESTABLISHED state 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: Tue, 14 Jun 2011 05:57:48 -0000 On 13.06.2011 18:47, Kip Macy wrote: > On Mon, Jun 13, 2011 at 4:58 PM, Mikolaj Golub wrote: >> Hi, >> >> Automatic receive buffer sizing works only for connections in ESTABLISHED >> state. In tcp_input() auto resizing code is under "if (tp->t_state == >> TCPS_ESTABLISHED&& ...)" branch. >> >> This is unfortunate for HAST, which uses one direction connections and >> shutdown another direction, so the receiving socket is in FIN_WAIT_2 and auto >> resizing does not work here. >> >> Is there some reason why it should be only for connections in ESTABLISHED >> state or this should be considered as a bug? > > Andre wrote the socket buffer auto-sizing, so I am CC'ing him. It certainly could be extended from == to >= ESTABLISHED for the mentioned reason. At the moment I'm still quite busy with other stuff. However from July on I've got plenty of time again for FreeBSD works. -- Andre