Commit c06171a8 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

store TIMER_CONNECT even if the connect failed

parent 5528c1ea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);