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