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_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,
|
Curl_expire(data, data->set.happy_eyeballs_timeout,
|
||||||
EXPIRE_HAPPY_EYEBALLS);
|
EXPIRE_HAPPY_EYEBALLS);
|
||||||
|
}
|
||||||
|
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user