Pausing a connection results in CURLOPT_LOW_SPEED_LIMIT being triggering #6358
I did this
Used CURL_WRITEFUNC_PAUSE (or curl_easy_pause) to pause a connection. CURLOPT_LOW_SPEED_LIMIT gets triggered once the download speed falls below the limit.
I expected the following
CURLOPT_LOW_SPEED_LIMIT not being triggered since I'm willingly in a paused state. Probably the paused connection should not be accounted in speed calculation while being paused.
curl 7.74.0 (x86_64-apple-darwin20.1.0) libcurl/7.74.0 OpenSSL/1.1.1i zlib/1.2.11 zstd/1.4.7 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0)
Darwin hostnamel 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered:
Paused transfers should not be stopped due to slow speed even when CURLOPT_LOW_SPEED_LIMIT is set. Additionally, the slow speed timer is now reset when the transfer is unpaused - as otherwise it would easily just trigger immediately after unpausing. Reported-by: Harry Sintonen Fixes #6358