From fc6c28a55568f874e233686aaa38f832008afa80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Mon, 26 Aug 2013 10:45:49 +0200 Subject: [PATCH] util: allow setting TCP_CORK / TCP_NOPUSH socket options this might be usefull boost performance when "use sendfile" is enabled See bug #10111 --- lib/util/util_net.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/util/util_net.c b/lib/util/util_net.c index 83afda4..7729828 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -775,6 +775,12 @@ static const smb_socket_option socket_options[] = { #ifdef TCP_NODELAY {"TCP_NODELAY", IPPROTO_TCP, TCP_NODELAY, 0, OPT_BOOL}, #endif +#ifdef TCP_CORK + {"TCP_CORK", IPPROTO_TCP, TCP_CORK, 0, OPT_BOOL}, +#endif +#ifdef TCP_NOPUSH + {"TCP_NOPUSH", IPPROTO_TCP, TCP_NOPUSH, 0, OPT_BOOL}, +#endif #ifdef TCP_KEEPCNT {"TCP_KEEPCNT", IPPROTO_TCP, TCP_KEEPCNT, 0, OPT_INT}, #endif -- 1.8.3.4