Skip to content

docs: document retry policy for network errors - #150

Merged
mre merged 7 commits into
masterfrom
docs/retry-policy-network-errors
Jun 7, 2026
Merged

docs: document retry policy for network errors#150
mre merged 7 commits into
masterfrom
docs/retry-policy-network-errors

Conversation

@mre

@mre mre commented Mar 13, 2026

Copy link
Copy Markdown
Member

Closes #149

Summary

The network errors troubleshooting page previously had no information about whether lychee retries failed requests. This PR adds a dedicated Retry Policy section that answers the question from the issue.

Changes

  • New ## Retry Policy section with:
    • A brief explanation of how lychee handles transient vs. permanent errors
    • An SVG-icon table (✓/✗ in green/red) listing exactly which error types are retried, derived directly from lychee-lib/src/retry.rs
    • A ### Configuring retries sub-section documenting --max-retries (default: 3) and --retry-wait-time (default: 1 s) with CLI and TOML examples
  • Added Connection reset by server as an example error message (the exact error from the issue)
  • Minor prose clean-ups throughout the page

mre added 4 commits March 13, 2026 18:25
Closes #149

- Add a 'Retry Policy' section to the Network Errors troubleshooting page
- Include an SVG-icon table listing which error types are retried and which are not
  (based on the logic in lychee-lib/src/retry.rs)
- Document the --max-retries and --retry-wait-time options with their defaults (3 and 1s)
- Add 'Connection reset by server' as an example error message
- Minor wording improvements throughout
@mre
mre requested review from katrinafyi and thomas-zahner March 13, 2026 20:53

@katrinafyi katrinafyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. I'm definitely not an expert on network error conditions, but the text looks fine and makes sense. I'm sure it will be helpful.

Comment thread src/content/docs/troubleshooting/network-errors.mdx Outdated
Comment thread src/content/docs/troubleshooting/network-errors.mdx Outdated
Co-authored-by: Kait <39479354+katrinafyi@users.noreply.github.com>
Comment thread src/content/docs/troubleshooting/network-errors.mdx Outdated
Comment thread src/content/docs/troubleshooting/network-errors.mdx Outdated
@mre
mre merged commit 11f4788 into master Jun 7, 2026
2 checks passed
@mre
mre deleted the docs/retry-policy-network-errors branch June 7, 2026 10:33
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.

Retry policy of network errors

3 participants