Skip to content

[spark-compete] fix: add timeout flags to curl commands in install.sh - #165

Open
Esc1200 wants to merge 1 commit into
vibeforge1111:mainfrom
Esc1200:esc1200/fix/install-curl-timeouts
Open

Esc1200 wants to merge 1 commit into
vibeforge1111:mainfrom
Esc1200:esc1200/fix/install-curl-timeouts

Conversation

@Esc1200

@Esc1200 Esc1200 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds --connect-timeout 15 --max-time 300 to all 3 curl download commands in install.sh (lines 438, 842, 843).

Problem

Without timeout flags, the installer hangs indefinitely on flaky networks or DNS issues with zero feedback to the user. There are 3 active curl download commands in the file and none had any timeout configured.

Fix

  • Line 438 (uv download): curl -fsSL --connect-timeout 15 --max-time 300 ...
  • Line 842 (Node archive): curl -fsSL --connect-timeout 15 --max-time 300 ...
  • Line 843 (Node SHASUMS): curl -fsSL --connect-timeout 15 --max-time 300 ...

Timeout values

  • --connect-timeout 15: 15 seconds for TCP handshake — generous enough for slow/mobile networks
  • --max-time 300: 5 minutes total per download — sufficient for large binaries like Node tarballs

Severity

MEDIUM — installer hangs silently on network issues, leaving users stuck with no actionable error.

Testing

  • Verified diff is exactly 3 lines changed
  • Timeout values are conservative and should not affect normal installations

Packet: spark-compete-hotfix-v1
Team: drophub_sir (Esc1200)
PR Author: Esc1200
Repo: vibeforge1111/Spark-Agent-Site
Actual behavior: All 3 curl commands in install.sh lack timeout flags, hanging indefinitely on network failures.
Expected behavior: curl commands should have --connect-timeout and --max-time flags for bounded failure time.
Repro steps: Run install.sh on a network with intermittent connectivity or blocked DNS; observe indefinite hang at lines 438, 842, or 843.
Before/after proof: Before: curl -fsSL "$url" -o "$archive". After: curl -fsSL --connect-timeout 15 --max-time 300 "$url" -o "$archive".
Tests/smoke: Verified diff shows exactly 3 lines changed. On network failure, curl exits with error code 28 (timeout) after 15s or 300s instead of hanging.
Duplicate notes: No prior PR found adding timeout flags to curl commands in install.sh.
Risk notes: Minimal risk — only adds standard curl timeout flags. No change to download URLs, verification logic, or successful-path behavior.
Review claim: pr_review

Add --connect-timeout 15 --max-time 300 to all 3 curl download commands
in install.sh (lines 438, 842, 843). Without these flags, the installer
hangs indefinitely on flaky networks or DNS issues with no feedback.

Timeouts chosen:
- --connect-timeout 15: allow 15s for TCP handshake (generous for slow networks)
- --max-time 300: 5 min total per download (sufficient for large binaries)
@Esc1200
Esc1200 requested a review from vibeforge1111 as a code owner June 7, 2026 17:00
@Esc1200 Esc1200 changed the title fix: add timeout flags to curl commands in install.sh [spark-compete] fix: add timeout flags to curl commands in install.sh Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant