lib: ratelimit timestamps

Remove the timestamp passed for ratelimit checks. Let the limit
calculation obtain a timestamp when it needs it. Most transfers run
without active ratelimits and getting a fresh timestamp is unnecessary.

Closes #22292
This commit is contained in:
Stefan Eissing 2026-07-10 11:47:48 +02:00 committed by Daniel Stenberg
parent c3ae9ef822
commit 34bc5b60bc
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
10 changed files with 31 additions and 23 deletions

View file

@ -1239,8 +1239,7 @@ CURLcode Curl_client_read(struct Curl_easy *data, char *buf, size_t blen,
}
if(Curl_rlimit_active(&data->progress.ul.rlimit)) {
curl_off_t ul_avail = Curl_rlimit_avail(&data->progress.ul.rlimit,
Curl_pgrs_now(data));
curl_off_t ul_avail = Curl_rlimit_avail(&data->progress.ul.rlimit, NULL);
if(ul_avail <= 0) {
result = CURLE_OK;
*eos = FALSE;