]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Add a new max-udp-queries-per-round setting
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Apr 2018 15:03:54 +0000 (17:03 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Apr 2018 15:03:54 +0000 (17:03 +0200)
commita5886e6adad3c19e3490fba1dc7e580defb83eee
tree6220d92ca4054981e7dcd75dee804253a29d3706
parent4551dc8a6cf97d32b7ee6e1e1814890d2e20414d
rec: Add a new max-udp-queries-per-round setting

This new setting limits the number of UDP queries we attempt to
handle after being woken up by the multiplexer and before returning
back to process other events.
Before this, we could end up trying to process queries after queries
and almost never return from handleNewUDPQuestion() to process new
events, meaning we could eventually end up never scheduling new
mthreads or handle responses from authoritative servers for a long
time, only sending responses for packetcache hits and creating new
mthreads.
pdns/pdns_recursor.cc
pdns/recursordist/docs/settings.rst