test dnsd: implement delayed responses

Add "Delay-A: ms", "Delay-AAAA: ms" and "Delay-HTTPS: ms" to the test
dnsd config and implement delayed response handling.

Add test_21_09 and test_21_10 to check that delayed responses connect
using the undelayed address family.

Closes #21299
This commit is contained in:
Stefan Eissing 2026-04-13 16:11:37 +02:00 committed by Daniel Stenberg
parent bcd94e2750
commit 86f1e5b3f6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 277 additions and 50 deletions

View file

@ -464,6 +464,10 @@ CURLcode Curl_async_thrdd_multi_init(struct Curl_multi *multi,
void Curl_async_thrdd_multi_destroy(struct Curl_multi *multi, bool join)
{
if(multi->resolv_thrdq) {
#ifdef CURLVERBOSE
CURL_TRC_DNS(multi->admin, "destroy thread queue+pool, join=%d", join);
Curl_thrdq_trace(multi->resolv_thrdq, multi->admin);
#endif
Curl_thrdq_destroy(multi->resolv_thrdq, join);
multi->resolv_thrdq = NULL;
}