]> git.ipfire.org Git - thirdparty/bind9.git/commit
Cleanup the STATID_CONNECT and STATID_CONNECTFAIL stat counters
authorOndřej Surý <ondrej@isc.org>
Thu, 14 Jul 2022 11:22:34 +0000 (13:22 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 14 Jul 2022 19:48:44 +0000 (21:48 +0200)
commitd242ced18f5cd2c198f93cafd2ed69a2fdd37064
tree5a32a1c60303e2e7d6e18b798a97d8527c0e4731
parent259f4481bd357c070a588f6eac128e017d5b863b
Cleanup the STATID_CONNECT and STATID_CONNECTFAIL stat counters

The STATID_CONNECT and STATID_CONNECTFAIL statistics were used
incorrectly. The STATID_CONNECT was incremented twice (once in
the *_connect_direct() and once in the callback) and STATID_CONNECTFAIL
would not be incremented at all if the failure happened in the callback.

Closes: #3452
(cherry picked from commit 59e1703b50dc4a5c52e3d6ae13bdd873a677b03f)
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c