mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +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);
|
int_fast64_t active = atomic_fetch_add(&active_cconnects, 1);
|
||||||
if (active > workers) {
|
if (active > workers) {
|
||||||
|
atomic_fetch_sub(&active_cconnects, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
connect_send_request(connect_nm, req_url, atomic_load(&POST),
|
connect_send_request(connect_nm, req_url, atomic_load(&POST),
|
||||||
|
Reference in New Issue
Block a user