]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Read as many DoH responses as possible before yielding
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Oct 2021 12:51:14 +0000 (14:51 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Oct 2021 12:52:03 +0000 (14:52 +0200)
commit964d9b7bd5bc70fb78a35a25c8a86f0a7310b323
tree03a5e5a2508ec2af970316a420a42ff8c11852a2
parentfb1e4416a0de152aca2d9f1d47288c8b5a6f0041
dnsdist: Read as many DoH responses as possible before yielding

We want to read as many responses from the pipe as possible before
giving up. Even if we are overloaded and fighting with the DoH connections
for the CPU, the first thing we need to do is to send responses to free slots
anyway, otherwise queries and responses are piling up in our pipes, consuming
memory and likely coming up too late after the client has gone away.
pdns/dnsdistdist/doh.cc