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

Failing the initial connection attempt stops retries #178

Open
hexjelly opened this issue Oct 3, 2018 · 0 comments
Open

Failing the initial connection attempt stops retries #178

hexjelly opened this issue Oct 3, 2018 · 0 comments

Comments

@hexjelly
Copy link
Contributor

hexjelly commented Oct 3, 2018

I'm not sure if this is the intended behavior or not, but I noticed that if you try to connect to a server and it fails the first attempt, it will simply stop retrying any additional connections. It only seems to attempt retrying if you've had one successful connection at some point.

It was a bit unclear how the logic worked while quickly looking through the connection method, so I'm not 100% sure if that's how it's supposed to work? I ended up setting .connection.connected = true;and .connection.registered = true; manually before connecting which takes care of it, but of course that feels wrong and hacky :)

At least as a user, I would expect connect() to keep retrying no matter what (if the auto_reconnect option is true).

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

No branches or pull requests

1 participant