Automatic receive buffer sizing works only for connections in ESTABLISHED state

Mikolaj Golub trociny at freebsd.org
Mon Jun 13 14:58:46 UTC 2011


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


More information about the freebsd-net mailing list