RE: socket: setting SO_SNDBUF

From: David Schwartz (
Date: Wed May 10 2000 - 19:30:34 EST

        The Linux operating system stores more in those buffers than other
operating systems do. So if we just passed along the size unmodified, people
would wind up with, effectively, smaller buffers than they expected.


> hi,
> I do not understand why setting SO_SNDBUF with
> res = BUFSIZE;
> err = setsockopt(s, SOL_SOCKET, SO_SNDBUF, &res, len);
> actually sets the buffer size to 2*BUFSIZE. What is the reason for that?
> The corresponding code fragment is in sock.c, int sock_setsockopt(...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:16 EST