testparm: don't warn for TCP_NODELAY in socket options.
authorMichael Adam <obnox@samba.org>
Wed, 20 Nov 2013 06:03:15 +0000 (07:03 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 21 Nov 2013 00:45:06 +0000 (16:45 -0800)
TCP_NODELAY is set by default, so we should not warn.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/testparm.c

index ce853539932cf6cdbfbc64a48a2d9825a533ab3a..7e49c0806426784a600b5f84c08444e8f1bc4ad9 100644 (file)
@@ -137,13 +137,13 @@ static int do_global_checks(void)
            (strstr(socket_options, "SO_SNDBUF") ||
             strstr(socket_options, "SO_RCVBUF") ||
             strstr(socket_options, "SO_SNDLOWAT") ||
-            strstr(socket_options, "SO_RCVLOWAT") ||
-            strstr(socket_options, "TCP_NODELAY"))) {
+            strstr(socket_options, "SO_RCVLOWAT")))
+       {
                fprintf(stderr,
                        "WARNING: socket options = %s\n"
                        "This warning is printed because you set one of the\n"
                        "following options: SO_SNDBUF, SO_RCVBUF, SO_SNDLOWAT,\n"
-                       "SO_RCVLOWAT, TCP_NODELAY\n"
+                       "SO_RCVLOWAT\n"
                        "Modern server operating systems are tuned for\n"
                        "high network performance in the majority of situations;\n"
                        "when you set 'socket options' you are overriding those\n"