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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user