Add support for TCP_DEFER_ACCEPT
authorVolker Lendecke <vl@samba.org>
Thu, 15 Dec 2011 15:12:37 +0000 (16:12 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 16 Dec 2011 06:34:48 +0000 (07:34 +0100)
commitbcd3db6264fbe4d2e71c0844a46b885e3c542e2a
tree57ca24af5d6556bfa2f31b5c1e625656d127e27e
parent432ea5f5c627b374948d0881d5da2aa9ba700763
Add support for TCP_DEFER_ACCEPT

"man tcp" on Linux says:

TCP_DEFER_ACCEPT

Allows a listener to be awakened only when data arrives on the  socket.  Takes
an integer value (seconds), this can bound the maximum number of attempts TCP
will make to complete the connection. This option should not be used in code
intended to be portable.

This might reduce the 139/445 forks a bit on high-load servers
lib/util/util_net.c