bind9/lib
Ondřej Surý cacaa94350 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.

(cherry picked from commit 78886d4bed)
2020-04-03 20:22:56 +02:00
..
bind9 prep 9.16.1 2020-03-20 11:47:01 +01:00
dns Replace hard coded value with constant 2020-04-03 10:04:24 +02:00
irs prep 9.16.1 2020-03-20 11:47:01 +01:00
isc Remove the extra decstats on STATID_ACTIVE for children sockets 2020-04-03 20:22:56 +02:00
isccc prep 9.16.1 2020-03-20 11:47:01 +01:00
isccfg prep 9.16.1 2020-03-20 11:47:01 +01:00
ns Fix the statistic counter underflow in ns_client_t 2020-04-03 20:22:56 +02:00
samples Use the new sorting rules to regroup #include headers 2020-03-11 08:55:12 +00:00
win32/bindevt Merge branch 'each-style-tweak' into 'master' 2020-02-14 05:35:29 +00: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