Skip to content

Add curl timeouts to sample config history get commands - #5519

Closed
Jonathan-Eid wants to merge 1 commit into
stellar:masterfrom
Jonathan-Eid:jonathan/history-curl-timeouts
Closed

Jonathan-Eid wants to merge 1 commit into
stellar:masterfrom
Jonathan-Eid:jonathan/history-curl-timeouts

Conversation

@Jonathan-Eid

Copy link
Copy Markdown

Adds --connect-timeout 10 --speed-limit 102400 --speed-time 30 to the history get curl commands in the sample configs in docs/.

  • a stalled archive connection otherwise hangs until the OS drops it. A local testnet catchup current sat ~9 min with no bucket progress, then failed with "Could not download file … maybe missing" for buckets that exist
  • with these flags curl gives up on a connection under 100 KB/s for 30s (or no connect in 10s), and core retries another archive. Same local catchup went from ~30 min to ~2.5 min
  • no cost when downloads are healthy: catchup current/0 on AWS took 89–91s with and without the flags, 0 failed downloads

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 20:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the sample-configuration updates intended to make stalled history downloads fail sooner.

No open issues 🎉

What changed in this PR

This PR updates Stellar Core’s sample configurations so stalled history archive downloads fail sooner, allowing existing retry handling to take over.

Changes:

  • Adds a 10-second connection timeout to history download curl commands.
  • Aborts transfers that remain below 102,400 bytes per second for 30 seconds.
  • Applies the same settings across testnet, validator, and legacy examples, including commented-out commands.
File Description
docs/​stellar-core_testnet.cfg Adds timeout settings to testnet validator history downloads.
docs/​stellar-core_testnet_validator.cfg Adds timeout settings to the testnet validator configuration.
docs/​stellar-core_testnet_legacy.cfg Updates legacy history get commands with timeout settings.
docs/​stellar-core_example.cfg Updates active history commands and commented-out examples.
docs/​stellar-core_example_validators.cfg Applies timeout settings throughout the multi-validator example.

Review effort: Balanced

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.

2 participants