mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08: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
@ -824,10 +824,9 @@ 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);
|
||||
}
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user