mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
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_updateconninfo(conn, conn->sock[sockindex]);
|
||||
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)
|
||||
return result;
|
||||
|
||||
data->info.numconnects++; /* to track the number of connections made */
|
||||
Curl_expire(conn->data, data->set.happy_eyeballs_timeout,
|
||||
EXPIRE_HAPPY_EYEBALLS);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user