]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Merge the 'main' and 'client' DoH threads 12386/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 2 Jul 2022 14:09:56 +0000 (16:09 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 11 Jan 2023 13:52:06 +0000 (14:52 +0100)
commit6c1dcafcabfdc63d64cadff945d8c1dd87c541bf
tree9e783c4940d5254757e0eb744259caec05f81cad
parent8b093b31a28c1928f5921a2cbb8900bc74870405
dnsdist: Merge the 'main' and 'client' DoH threads

When we are in "single acceptor thread" mode, merge the 'main' and
'client' DoH threads into a single one. We use separate threads to
reduce the separate the handling of the HTTP/2 traffic from the DNS
handling, to reduce latency, but that does not really make sense on
small devices with a single, limited CPU core. On these we prefer
using as few threads as possible to reduce the context switches and
the memory usage.
pdns/dnsdist.cc
pdns/dnsdistdist/doh.cc