From c75d3c10045ec3df657e2f41117201248117ee80 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 5 Oct 2018 13:49:48 +0200 Subject: [PATCH] use already available function in misc.cc instead of setsockopt --- pdns/dnsdist-tcp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 0ea59d791..9eba86191 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; -- 2.40.0