Some RPMs might be very large, and limiting the total download time might lead to failed build even in cases where downloading is making progress. Instead, set a minimum download speed (1kbps). If the minimum is not surpassed for 30 seconds in a row, the download fails and is retried. This follows the logic employed by DNF. Adjust the number of retries to 10 and the connection timeout to 30, in order to match what DNF does. One difference is that DNF does 10 retries across all downloads, whereas we do it per download, this could be changed in a follow-up. Old: - a download taking more than 5 minutes is unconditionally aborted New: - slow but working downloads will never be aborted - downloads will be stalled for at most five minutes in total before being aborted - time spent making progress does not count towards the five minutes Signed-off-by: Tom Gundersen <teg@jklm.no> |
||
|---|---|---|
| .. | ||
| org.osbuild.curl | ||
| org.osbuild.inline | ||
| org.osbuild.ostree | ||
| org.osbuild.skopeo | ||