From b5bb84cbefc73bb58b032ceba7d48030caf565c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Yhuel?= Date: Mon, 25 Sep 2023 17:03:40 +0200 Subject: [PATCH] connect: only start the happy eyeballs timer when needed The timeout is only used when there is a second address family, for the delayed eyeballer. Closes #11939 --- lib/connect.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/connect.c b/lib/connect.c index 4141789718..c7ba3e20e3 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -824,11 +824,10 @@ static CURLcode start_connect(struct Curl_cfilter *cf, CURL_TRC_CF(data, cf, "created %s (timeout %" CURL_FORMAT_TIMEDIFF_T "ms)", ctx->baller[1]->name, ctx->baller[1]->timeoutms); + Curl_expire(data, data->set.happy_eyeballs_timeout, + EXPIRE_HAPPY_EYEBALLS); } - Curl_expire(data, data->set.happy_eyeballs_timeout, - EXPIRE_HAPPY_EYEBALLS); - return CURLE_OK; }