1
0
mirror of synced 2025-09-04 02:21:59 +03:00

Fix: handle EAI_ALLDONE from gai_suspend in getaddrinfo_with_timeout (#2228)

This commit is contained in:
kgokalp
2025-08-28 18:08:32 +03:00
committed by GitHub
parent eb11032797
commit 7a3b92bbd9

View File

@@ -3776,7 +3776,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service,
int wait_result =
gai_suspend((const struct gaicb *const *)requests, 1, &timeout);
if (wait_result == 0) {
if (wait_result == 0 || wait_result == EAI_ALLDONE) {
// Completed successfully, get the result
int gai_result = gai_error(&request);
if (gai_result == 0) {