diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-12-15 12:36:08 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-12-15 12:36:08 +0000 |
| commit | 17805f5b31a097fbfcffd59399206d7b40b4932d (patch) | |
| tree | 6ffb8f9bfb50712563bfd857a0ce8a599c7c1870 /man7 | |
| parent | 69c4c1890244f38e162c3e580341ff06eeaeaa59 (diff) | |
| download | man-pages-17805f5b31a097fbfcffd59399206d7b40b4932d.tar.gz | |
Noted the Linux-specific feature whereby setsockopt() doubles
the value given for SO_SNDBUF and SO_RCVBUF.
Noted kernel imposed minimum values for SO_SNDBUF and SO_RCVBUF.
Diffstat (limited to 'man7')
| -rw-r--r-- | man7/socket.7 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/man7/socket.7 b/man7/socket.7 index c517bfd145..1935e1c10a 100644 --- a/man7/socket.7 +++ b/man7/socket.7 @@ -371,19 +371,33 @@ This option has no effect on stream-oriented sockets. .TP .B SO_SNDBUF Sets or gets the maximum socket send buffer in bytes. +The kernel doubles this value (to allow space for bookkeeping overhead) +when it is set using +.\" Most (all?) other implementations do not do this -- MTK, Dec 05 +.BR setsockopt (), +and this doubled value is returned by +.BR getsockopt (). The default value is set by the .B wmem_default sysctl and the maximum allowed value is set by the .B wmem_max sysctl. +The minimum (doubled) value for this option is 2048. .TP .B SO_RCVBUF Sets or gets the maximum socket receive buffer in bytes. +The kernel doubles this value (to allow space for bookkeeping overhead) +when it is set using +.\" Most (all?) other implementations do not do this -- MTK, Dec 05 +.BR setsockopt (), +and this doubled value is returned by +.BR getsockopt (). The default value is set by the .B rmem_default sysctl and the maximum allowed value is set by the .B rmem_max sysctl. +The minimum (doubled) value for this option is 256. .TP .B SO_LINGER Sets or gets the |
