]> granicus.if.org Git - pdns/commitdiff
t_id check was wrong for pdns-distributes-queries
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 18 Apr 2014 07:14:52 +0000 (09:14 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 18 Apr 2014 07:14:52 +0000 (09:14 +0200)
pdns/pdns_recursor.cc

index b1c08446f31c91d84d46445c99f508eb6a1e1975..05d2ea6e6c4b6ccb554e2b4a7a1adb425fbdd466 100644 (file)
@@ -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)