]> 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:46:41 +0000 (13:46 +0000)
commit8cfacc6fe1648973e9ca9bbe71bbe0efe0eaa97a
treec720e6015c914cc67e8dc703d3033ad666188d9e
parent0f6a6b9a704422ed256c861d83c1771fc2886c2b
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.
lib/dns/resolver.c