Date: Tue, 14 Jun 2011 07:31:07 +0200 From: Andre Oppermann <andre@freebsd.org> To: Kip Macy <kip.macy@gmail.com> Cc: Mikolaj Golub <trociny@freebsd.org>, freebsd-net@freebsd.org Subject: Re: Automatic receive buffer sizing works only for connections in ESTABLISHED state Message-ID: <4DF6F21B.2040609@freebsd.org> In-Reply-To: <BANLkTi=mLj-Qe_9JjXzu77rKoe3R2WZ-yQ@mail.gmail.com> References: <86mxhleq1q.fsf@kopusha.home.net> <BANLkTi=mLj-Qe_9JjXzu77rKoe3R2WZ-yQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 13.06.2011 18:47, Kip Macy wrote: > On Mon, Jun 13, 2011 at 4:58 PM, Mikolaj Golub<trociny@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DF6F21B.2040609>