mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Bug report #634625 identified how curl returned timeout immediately when
CURLOPT_CONNECTTIMEOUT was used and provided a fix.
This commit is contained in:
parent
a23c92596e
commit
ef749fa9ce
@ -1764,6 +1764,10 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||||||
/* Store creation time to help future close decision making */
|
/* Store creation time to help future close decision making */
|
||||||
conn->created = Curl_tvnow();
|
conn->created = Curl_tvnow();
|
||||||
|
|
||||||
|
/* Set the start time temporary to this creation time to allow easier
|
||||||
|
timeout checks before the transfer has started for real. The start time
|
||||||
|
is later set "for real" using Curl_pgrsStartNow(). */
|
||||||
|
conn->data->progress.start = conn->created;
|
||||||
|
|
||||||
/***********************************************************
|
/***********************************************************
|
||||||
* We need to allocate memory to store the path in. We get the size of the
|
* We need to allocate memory to store the path in. We get the size of the
|
||||||
|
Loading…
Reference in New Issue
Block a user