mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
progress: reset download/uploaded counter
... to make CURLOPT_MAX_RECV_SPEED_LARGE and CURLOPT_MAX_SEND_SPEED_LARGE work correctly on subsequent transfers that reuse the same handle. Fixed-by: Ironbars13 on github Fixes #4084 Closes #4161
This commit is contained in:
parent
fc6045f5d1
commit
d23e87d551
@ -238,6 +238,8 @@ void Curl_pgrsStartNow(struct Curl_easy *data)
|
||||
data->progress.ul_limit_start.tv_usec = 0;
|
||||
data->progress.dl_limit_start.tv_sec = 0;
|
||||
data->progress.dl_limit_start.tv_usec = 0;
|
||||
data->progress.downloaded = 0;
|
||||
data->progress.uploaded = 0;
|
||||
/* clear all bits except HIDE and HEADERS_OUT */
|
||||
data->progress.flags &= PGRS_HIDE|PGRS_HEADERS_OUT;
|
||||
Curl_ratelimit(data, data->progress.start);
|
||||
|
Loading…
Reference in New Issue
Block a user