The Samba-Bugzilla – Attachment 9161 Details for
Bug 10111
We need to enable TCP_CORK option so 'use sendfile=YES' can have better performance
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-util-allow-setting-TCP_CORK-TCP_NOPUSH-socket-option.patch (text/plain), 951 bytes, created by
Björn Jacke
on 2013-08-26 08:49:25 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2013-08-26 08:49:25 UTC
Size:
951 bytes
patch
obsolete
>From fc6c28a55568f874e233686aaa38f832008afa80 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review-
Actions:
View
Attachments on
bug 10111
: 9161