]> granicus.if.org Git - pdns/commitdiff
new queries now get far more multiplexer attention than they used to
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 6 Jan 2015 15:30:53 +0000 (16:30 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 6 Jan 2015 15:30:53 +0000 (16:30 +0100)
pdns/pdns_recursor.cc

index fdb25fee7cec7e95a480b9687c0d5f4c3d9c36ad..56568eb54116f34678f8e9b861d6e146a56a79fb 100644 (file)
@@ -969,6 +969,7 @@ void handleNewUDPQuestion(int fd, FDMultiplexer::funcparam_t& var)
   ComboAddress fromaddr;
   socklen_t addrlen=sizeof(fromaddr);
   
+  for(;;) 
   if((len=recvfrom(fd, data, sizeof(data), 0, (sockaddr *)&fromaddr, &addrlen)) >= 0) {
     if(t_remotes)
       t_remotes->push_back(fromaddr);
@@ -1015,8 +1016,9 @@ void handleNewUDPQuestion(int fd, FDMultiplexer::funcparam_t& var)
   }
   else {
     // cerr<<t_id<<" had error: "<<stringerror()<<endl;
-    if(errno == EAGAIN)
+    if(errno == EAGAIN) 
       g_stats.noPacketError++;
+    break;
   }
 }