windows: component archives download on a slow line
Windows release / build (push) Successful in 1h9m39s
Windows release / publish (push) Successful in 50s

A component's archive (sing-box's is 15 MB) had a minute for the
whole transfer, which a slow line misses (CI run #9 timed out on it).
Now a minute without a byte fails it, the whole has no limit, and a
transfer cut short is taken up where it stopped (an HTTP range), eight
times at most; the pinned hash checks the result as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 19:13:34 +03:00
1 parent 7cdd33f05e
commit fe291fab2b
2 files changed
+59 -2

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ pub async fn archive(src: &Source, routes: &[fetch::Route], cache: &Path) -> Res
}
let mut last = None;
for route in routes {
match fetch::get(&src.url, route, 512 * 1024 * 1024).await {
match fetch::get_large(&src.url, route, 512 * 1024 * 1024).await {
Ok(data) => {
if let Some(want) = &src.sha256 {
let got = hex(&data);