diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-12 10:03:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-12 10:03:59 +0000 |
commit | c06171a8027d3f9974c209e357ba9f2b3647be2e (patch) | |
tree | 1a1547ef79632d9b3c9730c83582708ba756c2fc | |
parent | 5528c1eaa55551d0a668318674f4f485b0102a10 (diff) |
store TIMER_CONNECT even if the connect failed
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |