From: Daniel Stenberg Date: Mon, 25 Sep 2023 13:59:38 +0000 (+0200) Subject: connect: expire the timeout when trying next X-Git-Tag: curl-8_4_0~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01d8473b250adb6f96ea2aac6bc89a3ccc28cab9;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/connect.c b/lib/connect.c index 8f4949e374..4141789718 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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); } } }