asyn-thrdd: fix result processing without wakeup socketpair

When building curl 8.20.0 with socketpair disabled, there is no
wakeup socket and the resolve results are not processed.

This fix performs result processing in the absence of a wakeup
socket before checking the resolve result.

Closes #21476
This commit is contained in:
Stefan Eissing 2026-04-30 16:53:02 +02:00 committed by Daniel Stenberg
parent d0717acaf0
commit c29278cc83
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -701,6 +701,9 @@ CURLcode Curl_async_take_result(struct Curl_easy *data,
if(thrdd->rr.channel)
(void)Curl_ares_perform(thrdd->rr.channel, 0);
#endif
#ifndef ENABLE_WAKEUP
Curl_async_thrdd_multi_process(data->multi);
#endif
if(!async->done)
return CURLE_AGAIN;