easy: reset pausing when resetting request

When the easy handle's request is reset, this needs to also reset
any pausing/ratelimit state.

Reported-by: Natris on github
Fixes #20641
Closes #20643
This commit is contained in:
Stefan Eissing 2026-02-20 13:09:04 +01:00 committed by Daniel Stenberg
parent d19c9e4e63
commit 078b3031ea
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -158,6 +158,9 @@ void Curl_req_hard_reset(struct SingleRequest *req, struct Curl_easy *data)
req->no_body = data->set.opt_no_body;
req->authneg = FALSE;
req->shutdown = FALSE;
/* Unpause all directions */
Curl_rlimit_block(&data->progress.dl.rlimit, FALSE, &t0);
Curl_rlimit_block(&data->progress.ul.rlimit, FALSE, &t0);
}
void Curl_req_free(struct SingleRequest *req, struct Curl_easy *data)