]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Account for the health-check run time between two runs 12802/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 11 May 2023 13:07:01 +0000 (15:07 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 11 May 2023 13:07:01 +0000 (15:07 +0200)
commit5b48dd1425dabbba7ab6758fe3ccf2b1410faef7
treea2cf3c17bd051511f0c62c28fe461594a3c6fca5
parentaa79ed1e2294a0292a6a2f720470bde3d5748358
dnsdist: Account for the health-check run time between two runs

We used to wait one full second between every run, which only makes
sense if the runs are not taking a long time. But as soon as we have
at least one check timing out, the run is taking roughly the time
of the longest timeout configured, so after this commit we:
- do not wait at all if the last run took more than a full second
- wait one second minus the elapsed time of the last run otherwise
pdns/dnsdist.cc