Automatic receive buffer sizing works only for connections in ESTABLISHED state

Kip Macy kip.macy at gmail.com
Mon Jun 13 16:47:20 UTC 2011


On Mon, Jun 13, 2011 at 4:58 PM, Mikolaj Golub <trociny at freebsd.org> 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.

-Kip


More information about the freebsd-net mailing list