diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-08-19 00:16:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-08-19 00:16:01 +0200 |
commit | 3af9ba166cfd456c943d2dbf92a1d4b4b893949c (patch) | |
tree | 8c48324d5ccaa95b41858530805147d52da2b1c0 | |
parent | 7b054a42aa7c1a87bda7abc804eb62d71271f290 (diff) |
connect: set TIMER_CONNECT
When connecting, make sure TIMER_CONNECT is set.
-rw-r--r-- | lib/connect.c | 3 | ||||
-rw-r--r-- | lib/url.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c index 230d1055a..7f7e16794 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -700,7 +700,8 @@ CURLcode Curl_is_connected(struct connectdata *conn, conn->bits.tcpconnect[sockindex] = TRUE; *connected = TRUE; - Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */ + if(sockindex == FIRSTSOCKET) + Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */ Curl_verboseconnect(conn); Curl_updateconninfo(conn, sockfd); @@ -3202,8 +3202,10 @@ static CURLcode ConnectPlease(struct SessionHandle *data, if(*connected) { result = Curl_connected_proxy(conn); - if(!result) + if(!result) { conn->bits.tcpconnect[FIRSTSOCKET] = TRUE; + Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */ + } } } |