Automatic receive buffer sizing works only for connections in
ESTABLISHED state
Andre Oppermann
andre at freebsd.org
Tue Jun 14 05:57:48 UTC 2011
On 13.06.2011 18:47, Kip Macy wrote:
> 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.
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
More information about the freebsd-net
mailing list