From owner-freebsd-net@FreeBSD.ORG Mon Jun 13 14:58:46 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 83D2B106564A; Mon, 13 Jun 2011 14:58:46 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id E424B8FC08; Mon, 13 Jun 2011 14:58:45 +0000 (UTC) Received: by fxm11 with SMTP id 11so4143640fxm.13 for ; Mon, 13 Jun 2011 07:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:sender:date:message-id :user-agent:mime-version:content-type; bh=zo3r5HUQmow14CMwuaO6cEoQRzZ3x3MoilaMGQBoODc=; b=WKkHhcIoGKzKMxijXpy3w/aZ03q02W3lLeE6qWP8qACFMOg2iXSK+R5LYnkI7CAl2c /jyGXZkn7NNkxAtCGsMoMIkUREA89V/AWTrwEN/8o5VLnfJv0+3uEFDcYo/Clc3/qlFT TEV5SPI694cukyP3Z5OkUmK4N179LwikJKJfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:sender:date:message-id:user-agent:mime-version :content-type; b=Qvt2W5ZpG1dBsZiSLkahOZAkSCoEEe1RMAz4xv0+lEWF+4ZpFvICIatzuWxFIOOa7X 8RsEnPla2Nde0qdzEWrR0ulLyLrBownqqU4+XdQb+eBnqxW5Upzw7I08WpwuiQNZaTVg hOErcxW6IRYwQvbvnJ257uUiLtr5sxg7It7TA= Received: by 10.223.6.198 with SMTP id a6mr3082476faa.126.1307977124764; Mon, 13 Jun 2011 07:58:44 -0700 (PDT) Received: from localhost ([95.69.172.154]) by mx.google.com with ESMTPS id q21sm2101094fan.16.2011.06.13.07.58.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 07:58:43 -0700 (PDT) From: Mikolaj Golub To: freebsd-net@freebsd.org Sender: Mikolaj Golub Date: Mon, 13 Jun 2011 17:58:41 +0300 Message-ID: <86mxhleq1q.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pawel Jakub Dawidek Subject: 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: Mon, 13 Jun 2011 14:58:46 -0000 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? -- Mikolaj Golub