From b8ef5c5cb7f69fc7880f1c4aad9282be2cb82246 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 18 Apr 2014 09:14:52 +0200 Subject: [PATCH] t_id check was wrong for pdns-distributes-queries --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index b1c08446f3..05d2ea6e6c 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2033,7 +2033,7 @@ try t_fdm->run(&g_now); // 'run' updates g_now for us - if(!t_id) { + if(!g_weDistributeQueries || !t_id) { // if pdns distributes queries, only tid 0 should do this if(listenOnTCP) { if(TCPConnection::getCurrentConnections() > maxTcpClients) { // shutdown, too many connections for(tcpListenSockets_t::iterator i=g_tcpListenSockets.begin(); i != g_tcpListenSockets.end(); ++i) -- 2.47.2