fix(parallels): bound linux smoke downloads · openclaw/openclaw@aa893b9
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -510,9 +510,13 @@ run_apt_with_lock_retry apt-get -o DPkg::Lock::Timeout=30 install -y curl ca-cer
|
510 | 510 | this.guest.bash(` |
511 | 511 | set -e |
512 | 512 | if command -v curl >/dev/null 2>&1; then |
513 | | - curl -fsSL ${shellQuote(url)} -o ${shellQuote(outputPath)} |
| 513 | + curl -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${shellQuote( |
| 514 | + url, |
| 515 | + )} -o ${shellQuote(outputPath)} |
514 | 516 | else |
515 | | - wget -q -O ${shellQuote(outputPath)} ${shellQuote(url)} |
| 517 | + wget -q --timeout=10 --read-timeout=120 --tries=3 -O ${shellQuote(outputPath)} ${shellQuote( |
| 518 | + url, |
| 519 | + )} |
516 | 520 | fi`); |
517 | 521 | } |
518 | 522 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -978,6 +978,8 @@ if (isPrlctl) {
|
978 | 978 | expect(script).toContain('"Unable to lock directory"'); |
979 | 979 | expect(script).toContain("downloadGuestFile"); |
980 | 980 | expect(script).toContain("this.downloadGuestFile(tgzUrl"); |
| 981 | +expect(script).toContain("curl -fsSL --connect-timeout 10 --max-time 120 --retry 2"); |
| 982 | +expect(script).toContain("wget -q --timeout=10 --read-timeout=120 --tries=3"); |
981 | 983 | }); |
982 | 984 | |
983 | 985 | it("keeps Linux bad-plugin diagnostics gated for historical update baselines", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。