diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-07-25 12:13:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-07-25 12:13:57 +0000 |
commit | 0cb4814105de3a2da408db23bbc98c3634dca320 (patch) | |
tree | 036a10e0f4482d2c05ce5d3c9736f2b080988bc9 /lib | |
parent | 76f34986362fa5a0c33a971e45d0747166605e70 (diff) |
tiny adjustments to set the start-time before the curl_connect() is called to
allow the connect function to better deal with timeouts, as was just added
to ftp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1166,13 +1166,16 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect) } if(conn->curl_connect) { - /* is there a post-connect() procedure? */ + /* is there a connect() procedure? */ + conn->now = tvnow(); /* set this here for timeout purposes in the + connect procedure, it is later set again for the + progress meter purpose */ result = conn->curl_connect(conn); if(result != CURLE_OK) return result; /* pass back errors */ } - pgrsTime(data, TIMER_CONNECT); + pgrsTime(data, TIMER_CONNECT); /* we're connected */ conn->now = tvnow(); /* time this *after* the connect is done */ conn->bytecount = 0; |