connect: expire the timeout when trying next

... so that it gets called again immediately and can continue trying
addresses to connect to. Otherwise it might unnecessarily wait for a
while there.

Fixes #11920
Reported-by: Loïc Yhuel
Closes #11935
This commit is contained in:
Daniel Stenberg 2023-09-25 15:59:38 +02:00
parent afb4b15614
commit 01d8473b25
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -634,6 +634,7 @@ evaluate:
/* next attempt was started */
CURL_TRC_CF(data, cf, "%s trying next", baller->name);
++ongoing;
Curl_expire(data, 0, EXPIRE_RUN_NOW);
}
}
}