mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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
This commit is contained in:
parent
76f3498636
commit
0cb4814105
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user