aboutsummaryrefslogtreecommitdiffstats
path: root/man7/socket.7
diff options
context:
space:
mode:
authorDavid Wilson <dw@botanicus.net>2014-12-20 05:14:29 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-02-21 08:32:11 +0100
commit75979920fe0da5009b665978bbed2215bb596459 (patch)
tree52b4c53af89f9e8296ce3b5c5fe438cb9153ec57 /man7/socket.7
parent674f11ecbc25eb616b596b2920385d160d94bbf1 (diff)
downloadman-pages-75979920fe0da5009b665978bbed2215bb596459.tar.gz
socket.7: Document SO_REUSEPORT socket option
Signed-off-by: David Wilson <dw@botanicus.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/socket.7')
-rw-r--r--man7/socket.714
1 files changed, 14 insertions, 0 deletions
diff --git a/man7/socket.7 b/man7/socket.7
index 2cb9fd98f8..9c79eee47b 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -662,6 +662,20 @@ with a specific port then it is not possible
to bind to this port for any local address.
Argument is an integer boolean flag.
.TP
+.BR SO_REUSEPORT " (since Linux 3.9)"
+Indicates that attempts to bind an identical listening address to
+multiple
+.B AF_INET
+or
+.B AF_INET6
+sockets by the same UID may succeed. This option allows
+.BR accept (2)
+load distribution in a multi-threaded server to be improved by
+using a distinct listener socket for each thread. This must be set
+on each socket prior to calling
+.BR bind (2)
+on the socket.
+.TP
.BR SO_RXQ_OVFL " (since Linux 2.6.33)"
.\" commit 3b885787ea4112eaa80945999ea0901bf742707f
Indicates that an unsigned 32-bit value ancillary message (cmsg)