]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix cache hit and miss metrics with DoH queries
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 3 May 2023 13:02:34 +0000 (15:02 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 3 May 2023 13:02:34 +0000 (15:02 +0200)
commitbc4d98b7cb2ecad488560d1dbef156708a1166af
treeb60640d43fedcbe085c7e601b34b4092da8ceb3d
parent26a9c3ebe635aea52f78194cc94be5deac5d7637
dnsdist: Fix cache hit and miss metrics with DoH queries

Since we do two lookups for DoH queries forwarded over UDP (first
TCP then UDP), we need to be careful to only record a cache miss
in our last attempt.
pdns/dnsdist.cc
regression-tests.dnsdist/test_Metrics.py