From: bert hubert Date: Fri, 5 Oct 2018 11:49:48 +0000 (+0200) Subject: use already available function in misc.cc instead of setsockopt X-Git-Tag: dnsdist-1.3.3~62^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7030%2Fhead;p=thirdparty%2Fpdns.git use already available function in misc.cc instead of setsockopt --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 0ea59d7911..9eba861914 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -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;