]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Reduce useless wake-ups from the event loop 12276/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Nov 2022 15:56:16 +0000 (16:56 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 Dec 2022 11:06:07 +0000 (12:06 +0100)
commitab8eb008c574f24e8df107d666c3d78e19de5297
treea1616e5bf7a5aec9556e5b52e2b5b5c6041046c5
parentc222a568eeee2b5f39e819a3d02828b775d1b8fe
dnsdist: Reduce useless wake-ups from the event loop

The TCP acceptor, UDP client and Lua network threads never needs to break out of the event loop.
The outgoing DoH one only needs to do that once per second to check for timeouts.
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdistdist/dnsdist-backend.cc
pdns/dnsdistdist/dnsdist-lua-network.cc
pdns/dnsdistdist/dnsdist-nghttp2.cc