From: Daniel Stenberg Date: Thu, 7 Nov 2002 08:45:10 +0000 (+0000) Subject: Bug report #634625 identified how curl returned timeout immediately when X-Git-Tag: curl-7_10_2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef749fa9ce93830f9835c9951a223dea4f5782ff;p=thirdparty%2Fcurl.git Bug report #634625 identified how curl returned timeout immediately when CURLOPT_CONNECTTIMEOUT was used and provided a fix. --- diff --git a/lib/url.c b/lib/url.c index 817bb6d56f..92c4dd9261 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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