Permalink
Browse files

new queries now get far more multiplexer attention than they used to

  • Loading branch information...
1 parent 891fbf8 commit bf3b0cec366c090af000b066267b6f6bbb3a512a @ahupowerdns ahupowerdns committed Jan 6, 2015
Showing with 3 additions and 1 deletion.
  1. +3 −1 pdns/pdns_recursor.cc
@@ -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;
}
}

0 comments on commit bf3b0ce

Please sign in to comment.