windows: component archives download on a slow line
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:
1 parent
7cdd33f05e
commit
fe291fab2b
2 files changed
+59
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user