]> 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 13:54:46 +0000 (13:54 +0000)
commit47e4ef0696a3f0c0aa802e24391a9479727d6a67
tree875dcafae5da04be5af3ac6dce685162f57bee94
parent8801d2668e6fe85f093ab74d8eeab56ce4a86282
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