diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-11-07 08:45:10 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-07 08:45:10 +0000 |
| commit | ef749fa9ce93830f9835c9951a223dea4f5782ff (patch) | |
| tree | 4b6714b3a39dedc7d8d2bbe1222a62449ab4c906 | |
| parent | a23c92596e2fa9c6af389c210033d7a8a73a3541 (diff) | |
Bug report #634625 identified how curl returned timeout immediately when
CURLOPT_CONNECTTIMEOUT was used and provided a fix.
| -rw-r--r-- | lib/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1764,6 +1764,10 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* Store creation time to help future close decision making */ 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 |
