]> git.ipfire.org Git - thirdparty/bind9.git/commit
Improve fetch limit logging
authorAram Sargsyan <aram@isc.org>
Tue, 19 Jul 2022 13:57:48 +0000 (13:57 +0000)
committerAram Sargsyan <aram@isc.org>
Mon, 1 Aug 2022 14:01:26 +0000 (14:01 +0000)
commitc0db0d7a8e43d5d9192f370133f92bc9429ca4da
tree4f174851de3e5ec94fdc68767f2f5fd3b3eb53cb
parent6a866e30f59caf074dfd8b3f7e67aef4807f186e
Improve fetch limit logging

When initially hitting the `fetches-per-zone` value, a log message
is being generated for the event of dropping the first fetch, then
any further log events occur only when another fetch is being dropped
and 60 seconds have been passed since the last logged message.

That logic isn't ideal because when the counter of the outstanding
fetches reaches zero, the structure holding the counters' values will
get deleted, and the information about the dropped fetches accumulated
during the last minute will not be logged.

Improve the fcount_logspill() function to makie sure that the final
values are getting logged before the counter object gets destroyed.

(cherry picked from commit 039871ceb767088205563965f7aae622a3f77082)
lib/dns/resolver.c