mirror of
https://github.com/curl/curl.git
synced 2026-07-27 10:57:19 +03:00
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:
parent
c3ae9ef822
commit
34bc5b60bc
10 changed files with 31 additions and 23 deletions
|
|
@ -284,8 +284,7 @@ static struct h2_stream_ctx *h2_stream_ctx_create(struct cf_h2_ctx *ctx)
|
|||
static int32_t cf_h2_get_desired_local_win(struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data)
|
||||
{
|
||||
curl_off_t avail = Curl_rlimit_avail(&data->progress.dl.rlimit,
|
||||
Curl_pgrs_now(data));
|
||||
curl_off_t avail = Curl_rlimit_avail(&data->progress.dl.rlimit, NULL);
|
||||
|
||||
(void)cf;
|
||||
if(avail < CURL_OFF_T_MAX) { /* limit in place */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue