mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 07:22:08 -04: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:
parent
019555fb1d
commit
71219882ed
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue