]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect: expire the timeout when trying next
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 Sep 2023 13:59:38 +0000 (15:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 Sep 2023 08:35:36 +0000 (10:35 +0200)
... 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

lib/connect.c

index 8f4949e37456260ffedc9f1afac64c923b57ed03..41417897189216e1610e6d3d4993d74b4050e9bb 100644 (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);
       }
     }
   }