Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2011 17:58:41 +0300
From:      Mikolaj Golub <trociny@freebsd.org>
To:        freebsd-net@freebsd.org
Cc:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject:   Automatic receive buffer sizing works only for connections in ESTABLISHED state
Message-ID:  <86mxhleq1q.fsf@kopusha.home.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86mxhleq1q.fsf>