← Commit list

221b7dda38

Stefan Eissing
Stefan Eissing
2025-09-25
FAILED Duration: 161s

Subject

transfer: avoid busy loop with tiny speed limit

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/transfer.c+1 -1
@@ -283,7 +283,7 @@ static CURLcode sendrecv_dl(struct Curl_easy *data,
* a quarter of the quota, break out. We want to stutter a bit
* to keep in the limit, but too small receives will just cost
* cpu unnecessarily. */
- if(total_received >= (data->set.max_recv_speed / 4))
+ if(total_received && (total_received >= (data->set.max_recv_speed / 4)))
break;
if(data->set.max_recv_speed < (curl_off_t)bytestoread)
bytestoread = (size_t)data->set.max_recv_speed;