bind9/lib
Ondřej Surý 78886d4bed Fix the statistic counter underflow in ns_client_t
In case of normal fetch, the .recursionquota is attached and
ns_statscounter_recursclients is incremented when the fetch is created.  Then
the .recursionquota is detached and the counter decremented in the
fetch_callback().

In case of prefetch or rpzfetch, the quota is attached, but the counter is not
incremented.  When we reach the soft-quota, the function returns early but don't
detach from the quota, and it gets destroyed during the ns_client_endrequest(),
so no memory was leaked.

But because the ns_statscounter_recursclients is only incremented during the
normal fetch the counter would be incorrectly decremented on two occassions:

1) When we reached the softquota, because the quota was not properly detached
2) When the prefetch or rpzfetch was cancelled mid-flight and the callback
   function was never called.
2020-04-03 19:41:46 +02:00
..
bind9 Use the new sorting rules to regroup #include headers 2020-03-09 16:19:22 +01:00
dns Replace hard coded value with constant 2020-04-03 09:27:15 +02:00
irs Fixup the headers formatting 2020-03-11 10:19:32 +01:00
isc Remove the extra decstats on STATID_ACTIVE for children sockets 2020-04-03 19:41:46 +02:00
isccc Stop leaking OpenSSL types and defines in the isc/md.h 2020-03-17 09:11:13 +01:00
isccfg Refactor the isc_log API so it cannot fail on memory failures 2020-03-18 09:05:59 +01:00
ns Fix the statistic counter underflow in ns_client_t 2020-04-03 19:41:46 +02:00
samples Use the new sorting rules to regroup #include headers 2020-03-09 16:19:22 +01:00
win32/bindevt apply the modified style 2020-02-13 15:05:06 -08:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:23:36 +11:00
Makefile.in remove lib/tests as nothing uses it anymore 2018-03-09 14:12:50 -08:00