fix: allow bounded slow-link transfers for full upgrade bundles

This commit is contained in:
whyour
2026-10-17 22:57:11 +08:00
parent 4040747936
commit 71a13a1779
2 changed files with 29 additions and 1 deletions
@@ -226,7 +226,11 @@ async function downloadWithProgress(
'--connect-timeout',
'30',
'--max-time',
'600',
String(
artifact === 'qinglong-bundle' && expected?.size
? Math.max(600, Math.min(7200, Math.ceil(expected.size / 8192) + 120))
: 600,
),
'--speed-limit',
'1024',
'--speed-time',