mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05: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) {
|
if(-1 == conn->firstsocket) {
|
||||||
/* Connect only if not already connected! */
|
/* Connect only if not already connected! */
|
||||||
result = ConnectPlease(conn);
|
result = ConnectPlease(conn);
|
||||||
|
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done, good or bad */
|
||||||
|
|
||||||
if(CURLE_OK != result)
|
if(CURLE_OK != result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
Curl_pgrsTime(data, TIMER_CONNECT); /* we're connected */
|
|
||||||
if(data->set.verbose)
|
if(data->set.verbose)
|
||||||
verboseconnect(conn);
|
verboseconnect(conn);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user