1
0
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:
Daniel Stenberg 2002-04-12 10:03:59 +00:00
parent 5528c1eaa5
commit c06171a802

View File

@ -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);