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

Auto connect #99

Closed
tiagolobocastro opened this issue Sep 8, 2020 · 0 comments
Closed

Auto connect #99

tiagolobocastro opened this issue Sep 8, 2020 · 0 comments
Labels
enhancement Enhancement to existing functionality

Comments

@tiagolobocastro
Copy link
Contributor

Use Case:

At the moment the library takes care of reconnections, but the it can't connect to the server to begin with it just fails. Might be nice to have the library handle the initial connection retries by itself, depending on an option in Options.

Proposed Change:

Add an option to auto connect to Options and in the client run set use_backoff accordingly in

let mut use_backoff = false;

Who Benefits From The Change(s)?

No big deal, as we can always add a retry with timeout ourselves but it might avoid having to do it...

Alternative Approaches

User of the library adds it's own retry logic, should they wish to retry ofcourse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant