s3: allow to set TCP_NODELAYACK socket option on AIX (#8616)
authorBjörn Jacke <bj@sernet.de>
Fri, 18 Nov 2011 12:40:17 +0000 (13:40 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 19 Nov 2011 19:05:24 +0000 (20:05 +0100)
this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on
Linux

this is a backport of 383a918322c1edd1977fdbce19e52e8c8e6ffac1

source3/lib/util_sock.c

index 6ba1ab9758cf3ed4f6af9b9282c1fc2b83380066..40e6e048d7985253f0b1945150c340094be825b1 100644 (file)
@@ -137,6 +137,9 @@ static const smb_socket_option socket_options[] = {
 #ifdef TCP_QUICKACK
   {"TCP_QUICKACK", IPPROTO_TCP, TCP_QUICKACK, 0, OPT_BOOL},
 #endif
+#ifdef TCP_NODELAYACK
+  {"TCP_NODELAYACK", IPPROTO_TCP, TCP_NODELAYACK, 0, OPT_BOOL},
+#endif
 #ifdef TCP_KEEPALIVE_THRESHOLD
   {"TCP_KEEPALIVE_THRESHOLD", IPPROTO_TCP, TCP_KEEPALIVE_THRESHOLD, 0, OPT_INT},
 #endif