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

apply timeouts to rewards tree downloads #446

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

jshufro
Copy link
Contributor

@jshufro jshufro commented Feb 14, 2024

Suggest reviewing with whitespace hidden:
image
The diff becomes very small:
image

Timeouts are needed because we don't set one locally, so golang will not timeout ever. Fortunately the ipfs services seem to cut us off and 504 after 1-2 minutes (each).

This means that if both ipfs services are failing (as they are for @xrchz), we never time out, but instead get 504 responses, back to back, and downloading each file takes over 2 minutes.

Instead we can start by trying to download the files with a very short timeout and then extend it a couple times if it fails.

@0xfornax 0xfornax merged commit d86ebdf into rocket-pool:master Feb 15, 2024
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