mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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
This commit is contained in:
parent
432ea5f5c6
commit
bcd3db6264
@ -811,6 +811,9 @@ static const smb_socket_option socket_options[] = {
|
||||
#endif
|
||||
#ifdef TCP_KEEPALIVE_ABORT_THRESHOLD
|
||||
{"TCP_KEEPALIVE_ABORT_THRESHOLD", IPPROTO_TCP, TCP_KEEPALIVE_ABORT_THRESHOLD, 0, OPT_INT},
|
||||
#endif
|
||||
#ifdef TCP_DEFER_ACCEPT
|
||||
{"TCP_DEFER_ACCEPT", IPPROTO_TCP, TCP_DEFER_ACCEPT, 0, OPT_INT},
|
||||
#endif
|
||||
{NULL,0,0,0,0}};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user