]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix the resolvers RTT-ranged responses statistics counters
authorAram Sargsyan <aram@isc.org>
Thu, 6 Mar 2025 14:28:48 +0000 (14:28 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 18 Mar 2025 16:20:59 +0000 (16:20 +0000)
commit830e54811168bc3e69db93baf6132c18f3452f92
treee53a0f723e043a82876db13118c31cf54caf2fdf
parent12e7dfa397c92807bdc4e6f55918d46eb15e0600
Fix the resolvers RTT-ranged responses statistics counters

When a response times out the fctx_cancelquery() function
incorrectly calculates it in the 'dns_resstatscounter_queryrtt5'
counter (i.e. >=1600 ms). To avoid this, the rctx_timedout()
function should make sure that 'rctx->finish' is NULL. And in order
to adjust the RTT values for the timed out server, 'rctx->no_response'
should be true. Update the rctx_timedout() function to make those
changes.
lib/dns/resolver.c