From 71219882edcf0b33e68463887cce5b3b71e4fe7d Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Mon, 27 Nov 2023 23:10:36 +0200 Subject: [PATCH] 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. --- tests/isc/doh_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/isc/doh_test.c b/tests/isc/doh_test.c index ad083f1e70..1da62f1d60 100644 --- a/tests/isc/doh_test.c +++ b/tests/isc/doh_test.c @@ -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),