Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry fetch request when libp2p stream is reset #140

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

gammazero
Copy link
Collaborator

The libp2p stream may be reset for a number of reasons, such as network error, rate limiting, etc. Often a subsequent request will succeed. This change allows each fetch request to retry once upon receiving stream reset error.

Update libp2p to get security fix.

The libp2p stream may be reset for a number of reasons, such as network error, rate limiting, etc. Often a subsequent request will succeed. This change allows each fetch request to retry once upon receiving stream reset error.
@codecov-commenter
Copy link

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (8ba3ff7) 61.60% compared to head (540466e) 61.26%.

Files Patch % Lines
dagsync/ipnisync/sync.go 28.57% 5 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
- Coverage   61.60%   61.26%   -0.34%     
==========================================
  Files          57       57              
  Lines        4930     4936       +6     
==========================================
- Hits         3037     3024      -13     
- Misses       1567     1585      +18     
- Partials      326      327       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gammazero gammazero merged commit d2ef78a into main Dec 19, 2023
7 checks passed
@gammazero gammazero deleted the retry-on-reset branch December 19, 2023 19:43
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