The low speedlimit currently counts both up- and download speed
accumulated. So, when unpausing upload, also reset the counter.
Closes #19687
}
}
+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.
/* perform progress update with callbacks and speed checks */
CURLcode Curl_pgrsCheck(struct Curl_easy *data);
-/* Inform progress/speedcheck about receive pausing */
+/* Inform progress/speedcheck about receive/send pausing */
void Curl_pgrsRecvPause(struct Curl_easy *data, bool enable);
+void Curl_pgrsSendPause(struct Curl_easy *data, bool enable);
/* Reset sizes and couners for up- and download. */
void Curl_pgrsReset(struct Curl_easy *data);
Curl_rlimit_block(&data->progress.ul.rlimit, enable, curlx_now());
if(!enable && Curl_creader_is_paused(data))
result = Curl_creader_unpause(data);
+ Curl_pgrsSendPause(data, enable);
return result;
}