Skip to content

Add curl timeout and retry flags to prevent install script hangs#517

Open
enescakir wants to merge 1 commit intoDopplerHQ:masterfrom
enescakir:fix/curl-timeout
Open

Add curl timeout and retry flags to prevent install script hangs#517
enescakir wants to merge 1 commit intoDopplerHQ:masterfrom
enescakir:fix/curl-timeout

Conversation

@enescakir
Copy link

The curl command in curl_download() had no connect-timeout or max-time set, causing it to hang indefinitely on slow/stalled connections. The --retry 5 flag was ineffective because curl never timed out on its own to trigger a retry.

The dopplerhq/cli-action action has 30 seconds timeout, so it occasionally fails without retry.

Added:

  • --connect-timeout 10: fail fast if server is unreachable
  • --max-time 60: cap total transfer time per attempt
  • --retry-all-errors: retry on all errors, not just transient ones

The curl command in curl_download() had no connect-timeout or max-time
set, causing it to hang indefinitely on slow/stalled connections. The
--retry 5 flag was ineffective because curl never timed out on its own
to trigger a retry.

Added:
- --connect-timeout 10: fail fast if server is unreachable
- --max-time 60: cap total transfer time per attempt
- --retry-all-errors: retry on all errors, not just transient ones

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@enescakir enescakir requested a review from a team as a code owner March 2, 2026 13:33
@wotschofsky
Copy link

+1 This would be very helpful for us. We regularly run into ETIMEDOUT errors, making CI fail.

@amoses12
Copy link
Contributor

amoses12 commented Mar 5, 2026

Hey @enescakir, I've reviewed and tested this and this all looks good. Could you please remove claude as a co-author for the commit? Once that's done, I'll approve this and get it merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants