mirror of
https://github.com/curl/curl.git
synced 2026-05-04 03:27:55 +03:00
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
This commit is contained in:
parent
a35e2dd69c
commit
b5bb84cbef
1 changed files with 2 additions and 3 deletions
|
|
@ -824,11 +824,10 @@ static CURLcode start_connect(struct Curl_cfilter *cf,
|
||||||
CURL_TRC_CF(data, cf, "created %s (timeout %"
|
CURL_TRC_CF(data, cf, "created %s (timeout %"
|
||||||
CURL_FORMAT_TIMEDIFF_T "ms)",
|
CURL_FORMAT_TIMEDIFF_T "ms)",
|
||||||
ctx->baller[1]->name, ctx->baller[1]->timeoutms);
|
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;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue