]> granicus.if.org Git - pdns/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)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 20 Aug 2018 13:01:16 +0000 (15:01 +0200)
commit0d7833217b7189750aa1d720060aac5a1bbb4672
tree8d2332090e4bd6ae6edf7993742ba7a24849bdb9
parent6ac74ddc13d4f3d1a878be8accaf1a7df4d3dcb1
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.

(cherry picked from commit a5886e6adad3c19e3490fba1dc7e580defb83eee)
pdns/pdns_recursor.cc
pdns/recursordist/docs/settings.rst