we have a report against DNF to support throttling the download speeds (by specifying maximum data amount/second). Would it be possible to add a support for this in librepo? It's obviously a low prio.
Hi Ales, no problem. In fact, the support is already implemented (the LRO_MAXSPEED option). But I've just done a little modification: Before the version 1.5.1 this limitation was applied per download. For example: If you set LRO_MAXSPEED to 600 000 byte/sec and had 4 simultaneous downloads permitted (LRO_MAXPARALLELDOWNLOADS), each was limited to 600 000 byte/sec (2 400 000 byte/sec in total). Since 1.5.1 (currently in rawhide and f20-testing), Librepo considers LRO_MAXSPEED as the accumulated speed of all downloads in a related call (lr_perform()/lr_download_packages()/...). For example: If you set LRO_MAXSPEED to 600 000 byte/sec and have 4 simultaneous downloads permitted, each is limited to 150 000 byte/sec (in case that all 4 download slots are used), if only one is used, it has granted the whole capacity (600 000 byte/sec), etc. <- IMHO this approach is much better
yes, that's what makes more sense. Thanks!
librepo-1.6.0-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/librepo-1.6.0-1.fc20
Package librepo-1.6.0-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing librepo-1.6.0-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3120/librepo-1.6.0-1.fc20 then log in and leave karma (feedback).
librepo-1.6.0-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.