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
1 changed files with 2 additions and 1 deletions

View File

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