-
Notifications
You must be signed in to change notification settings - Fork 7
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 on rpc timeout response #518
Retry on rpc timeout response #518
Conversation
@pendulum-chain/devs Although I think this could solve the issue, I was not able to trigger a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No complaints from me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as well, good job @gianfra-t 👍
The CI keeps failing on me 😕. Someone knows why could this be? |
Yes one of the previous was a failed build, very strange since it has been built many times already! |
Closes #516.
General Description
Upon receiving a
RequestTimeout
error, the client should retry sending the transaction. This will be done with the samebackoff
used for other errors defined as "Skippable".Implementation
We add a method to identify the
RequestTimeout
error, and add it to the respective closures with the correspondingSkip
retry policy.The client's existing timeout (for some transactions) should also be larger (currently 5 minutes) than the one returned by the unresponsive chain. For requests we will just retry until the backoff is exausted.