mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
store TIMER_CONNECT even if the connect failed
This commit is contained in:
parent
5528c1eaa5
commit
c06171a802
@ -2276,10 +2276,11 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||
if(-1 == conn->firstsocket) {
|
||||
/* Connect only if not already connected! */
|
||||
result = ConnectPlease(conn);
|
||||
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done, good or bad */
|
||||
|
||||
if(CURLE_OK != result)
|
||||
return result;
|
||||
|
||||
Curl_pgrsTime(data, TIMER_CONNECT); /* we're connected */
|
||||
if(data->set.verbose)
|
||||
verboseconnect(conn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user