mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
fixed time-out returned without error text set
This commit is contained in:
parent
b3b4786990
commit
5c6eddcadd
@ -369,9 +369,11 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
|
|||||||
/* subtract the passed time */
|
/* subtract the passed time */
|
||||||
timeout_ms -= (long)has_passed;
|
timeout_ms -= (long)has_passed;
|
||||||
|
|
||||||
if(timeout_ms < 0)
|
if(timeout_ms < 0) {
|
||||||
/* a precaution, no need to continue if time already is up */
|
/* a precaution, no need to continue if time already is up */
|
||||||
|
failf(data, "Connection time-out");
|
||||||
return CURLE_OPERATION_TIMEOUTED;
|
return CURLE_OPERATION_TIMEOUTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
|
Loading…
Reference in New Issue
Block a user