2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

DoH unit test: do not increase 'active_cconnects' too much

Theoretically, the value could get too big, not letting the test to
finish. This commit fixes that omission.
This commit is contained in:
Artem Boldariev
2023-11-27 23:10:36 +02:00
parent 019555fb1d
commit 71219882ed

View File

@@ -773,6 +773,7 @@ doh_connect_thread(void *arg) {
*/
int_fast64_t active = atomic_fetch_add(&active_cconnects, 1);
if (active > workers) {
atomic_fetch_sub(&active_cconnects, 1);
return;
}
connect_send_request(connect_nm, req_url, atomic_load(&POST),