connect: set TIMER_CONNECT
When connecting, make sure TIMER_CONNECT is set.
This commit is contained in:
parent
7b054a42aa
commit
3af9ba166c
@ -700,7 +700,8 @@ CURLcode Curl_is_connected(struct connectdata *conn,
|
|||||||
|
|
||||||
conn->bits.tcpconnect[sockindex] = TRUE;
|
conn->bits.tcpconnect[sockindex] = TRUE;
|
||||||
*connected = TRUE;
|
*connected = TRUE;
|
||||||
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */
|
if(sockindex == FIRSTSOCKET)
|
||||||
|
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */
|
||||||
Curl_verboseconnect(conn);
|
Curl_verboseconnect(conn);
|
||||||
Curl_updateconninfo(conn, sockfd);
|
Curl_updateconninfo(conn, sockfd);
|
||||||
|
|
||||||
|
@ -3202,8 +3202,10 @@ static CURLcode ConnectPlease(struct SessionHandle *data,
|
|||||||
|
|
||||||
if(*connected) {
|
if(*connected) {
|
||||||
result = Curl_connected_proxy(conn);
|
result = Curl_connected_proxy(conn);
|
||||||
if(!result)
|
if(!result) {
|
||||||
conn->bits.tcpconnect[FIRSTSOCKET] = TRUE;
|
conn->bits.tcpconnect[FIRSTSOCKET] = TRUE;
|
||||||
|
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user