]> granicus.if.org Git - pdns/commitdiff
use already available function in misc.cc instead of setsockopt
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 5 Oct 2018 11:49:48 +0000 (13:49 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 5 Oct 2018 11:49:48 +0000 (13:49 +0200)
pdns/dnsdist-tcp.cc

index 0ea59d7911a21829adc7681972c93fcf37a4e901..9eba8619142117f6bc936ab58710d24b78ba6a21 100644 (file)
@@ -716,7 +716,7 @@ void* tcpAcceptorThread(void* p)
         continue;
       }
 #endif
-      SSetsockopt(ci->fd, SOL_TCP, TCP_NODELAY, 1); // disable NAGLE
+      setTCPNoDelay(ci->fd);  // disable NAGLE
       if(g_maxTCPQueuedConnections > 0 && g_tcpclientthreads->getQueuedCount() >= g_maxTCPQueuedConnections) {
         close(ci->fd);
         delete ci;