From: Daniel Stenberg Date: Fri, 12 Apr 2002 10:03:59 +0000 (+0000) Subject: store TIMER_CONNECT even if the connect failed X-Git-Tag: upstream/7.37.1~15557 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c06171a8027d3f9974c209e357ba9f2b3647be2e;p=platform%2Fupstream%2Fcurl.git store TIMER_CONNECT even if the connect failed --- diff --git a/lib/url.c b/lib/url.c index ca0bc2db1..fbe7afc94 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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);