Subject: Re: TCP socket buffers automatic sizing
To: Greg Troxel <>
From: Thor Lancelot Simon <>
List: tech-net
Date: 07/21/2007 13:20:39
On Sat, Jul 21, 2007 at 07:01:13AM -0400, Greg Troxel wrote:
> It seems that autosize is turned off permanently for the socket if there
> is a single allocation failure, and that there is no way for it to be
> turned back on.

I looked at the FreeBSD code a couple of months ago and was quite
dissatisfied with what seemed like some of the possible consequences
of how they shrink buffers (among other things, it's grossly unfair
between sockets, which seems like it could be trivially exploited by
a malicious application to reduce throughput for others).

But if they haven't had trouble with it in practice -- what's Linux do,
for comparison?