mirror of https://github.com/Cisco-Talos/clamav
Currently ReceiveTimeout sets CURLOPT_TIMEOUT which is an absolute timeout on the HTTP download and not particularly useful without knowing the size of the file or the throughput available to download it. Change it to use CURLOPT_LOW_SPEED_TIME instead, and set the related low speed limit (CURLOPT_LOW_SPEED_LIMIT) to 1 byte per second. This will allow the ReceiveTimeout to abort the attempt if the download is not making any significant progress. Restore the documentation, default and sample options back to beforepull/256/head2fd28e1d09
andf5d465a864
. This fixes #266 and avoids problems caused by the Ubuntu default ReceiveTimeout of 30 seconds.
parent
b47745b691
commit
1b276dbe93
Loading…
Reference in new issue