Skip to content

Retry and ungraceful server kill #275

Answered by enisdenjo
intellix asked this question in Q&A
Discussion options

You must be logged in to vote

The default retryWait client option is using randomised exponential backoff, you should consider using the default instead. Custom retry strategy example from the readme is just in case you want to supply your own custom logic.

Can you expand more on the close event? Close code and reason would be helpful.

Furthermore, if the error is not a close event, it is probably a fatal error and they don't get retried by default. To control whether the error is fatal, you might consider using the isFatalConnectionProblem client option.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@intellix
Comment options

@enisdenjo
Comment options

@intellix
Comment options

Answer selected by intellix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants