diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-05-11 09:09:11 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-11 16:32:11 +0200 |
commit | 1a20689a56af29871a88c338ea0da3268038312c (patch) | |
tree | d673f0822e9bdd902b5abc97000ec7d0c2240acc /lib/progress.c | |
parent | 3b6b1afab9c00bcb84355569402a0a606d577f72 (diff) | |
download | curl-1a20689a56af29871a88c338ea0da3268038312c.tar.gz |
progress: reset limit_size variables at transfer start
Otherwise the old value would linger from a previous use and would mess
up the network speed cap logic.
Reported-by: Ymir1711 on github
Fixes #7042
Closes #7043
Diffstat (limited to 'lib/progress.c')
-rw-r--r-- | lib/progress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/progress.c b/lib/progress.c index 1f9f9f705..4bcd615eb 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -241,6 +241,8 @@ void Curl_pgrsStartNow(struct Curl_easy *data) data->progress.is_t_startransfer_set = false; data->progress.ul_limit_start = data->progress.start; data->progress.dl_limit_start = data->progress.start; + data->progress.ul_limit_size = 0; + data->progress.dl_limit_size = 0; data->progress.downloaded = 0; data->progress.uploaded = 0; /* clear all bits except HIDE and HEADERS_OUT */ |