mirror of https://github.com/moparisthebest/curl
CURLINFO_NUM_CONNECTS: improve accuracy
The counter was not bumped in all cases correctly. Reported-by: Marcel Raad Ref: #5131 Closes #5135
This commit is contained in:
parent
4b355dd13b
commit
4852661426
|
@ -807,6 +807,7 @@ static void post_SOCKS(struct connectdata *conn,
|
||||||
Curl_pgrsTime(conn->data, TIMER_CONNECT); /* connect done */
|
Curl_pgrsTime(conn->data, TIMER_CONNECT); /* connect done */
|
||||||
Curl_updateconninfo(conn, conn->sock[sockindex]);
|
Curl_updateconninfo(conn, conn->sock[sockindex]);
|
||||||
Curl_verboseconnect(conn);
|
Curl_verboseconnect(conn);
|
||||||
|
conn->data->info.numconnects++; /* to track the number of connections made */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1343,7 +1344,6 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
data->info.numconnects++; /* to track the number of connections made */
|
|
||||||
Curl_expire(conn->data, data->set.happy_eyeballs_timeout,
|
Curl_expire(conn->data, data->set.happy_eyeballs_timeout,
|
||||||
EXPIRE_HAPPY_EYEBALLS);
|
EXPIRE_HAPPY_EYEBALLS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue