diff options
author | Günther Deschner <gd@samba.org> | 2017-09-20 20:21:49 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2020-07-08 15:54:38 +0000 |
commit | bd71d2d92c2186bc503449085e53fcb7564cbb42 (patch) | |
tree | f19fa2e9e2af5179cd59820f84091afcb90915c0 | |
parent | 4faab2a77a66497ea18ae6df8fee28e27dab1b4a (diff) | |
download | samba-bd71d2d92c2186bc503449085e53fcb7564cbb42.tar.gz |
lib/util: allow to set TCP_USER_TIMEOUT socket option
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | docs-xml/smbdotconf/tuning/socketoptions.xml | 1 | ||||
-rw-r--r-- | lib/util/util_net.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docs-xml/smbdotconf/tuning/socketoptions.xml b/docs-xml/smbdotconf/tuning/socketoptions.xml index c0bd785cb78..d2be5148fde 100644 --- a/docs-xml/smbdotconf/tuning/socketoptions.xml +++ b/docs-xml/smbdotconf/tuning/socketoptions.xml @@ -71,6 +71,7 @@ <listitem><para>TCP_KEEPALIVE_THRESHOLD *</para></listitem> <listitem><para>TCP_KEEPALIVE_ABORT_THRESHOLD *</para></listitem> <listitem><para>TCP_DEFER_ACCEPT *</para></listitem> + <listitem><para>TCP_USER_TIMEOUT *</para></listitem> </itemizedlist> <para>Those marked with a <emphasis>'*'</emphasis> take an integer diff --git a/lib/util/util_net.c b/lib/util/util_net.c index 6cfb35c87a4..ad6ee792084 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -1036,6 +1036,9 @@ static const smb_socket_option socket_options[] = { #ifdef TCP_DEFER_ACCEPT {"TCP_DEFER_ACCEPT", IPPROTO_TCP, TCP_DEFER_ACCEPT, 0, OPT_INT}, #endif +#ifdef TCP_USER_TIMEOUT + {"TCP_USER_TIMEOUT", IPPROTO_TCP, TCP_USER_TIMEOUT, 0, OPT_INT}, +#endif {NULL,0,0,0,0}}; /**************************************************************************** |