Re: Linux 2.2.* SO_RCVBUF / SO_SNDBUF annoyance ?

Angus Mackay (amackay@gusnet.cx)
Sun, 19 Sep 1999 12:21:17 -0700


was there any response to the issue brought up on the list a while ago
about 2.2.* using 2x the specified value for the SND/RCV buffer?

the offending code is [linux/net/core/sock.c]:
case SO_SNDBUF:
if (val > sysctl_wmem_max)
val = sysctl_wmem_max;
sk->sndbuf = max(val*2,2048);

this seems pretty retarted to me, is there any reason to give the user twice the
value they asked for?

cheers, Angus.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/