mirror of
https://github.com/curl/curl.git
synced 2026-08-08 11:52:59 +03:00
speedlimit: also reset on send unpausing
The low speedlimit currently counts both up- and download speed accumulated. So, when unpausing upload, also reset the counter. Closes #19687
This commit is contained in:
parent
6069c340b4
commit
ba65073037
3 changed files with 11 additions and 1 deletions
|
|
@ -196,6 +196,14 @@ void Curl_pgrsRecvPause(struct Curl_easy *data, bool enable)
|
|||
}
|
||||
}
|
||||
|
||||
void Curl_pgrsSendPause(struct Curl_easy *data, bool enable)
|
||||
{
|
||||
if(!enable) {
|
||||
data->progress.speeder_c = 0; /* reset speed records */
|
||||
pgrs_speedinit(data); /* reset low speed measurements */
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Curl_pgrsTimeWas(). Store the timestamp time at the given label.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue