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

fix: connect stops reconnect handler #41

Merged
merged 1 commit into from
May 10, 2022
Merged

Conversation

patrykcieszkowski
Copy link
Contributor

initial problem:
probes don't reconnect after server initiated disconnect

current problem:
probes don't reconnect after their first connect failure.

reasoning:
the client doesn't attempt to reconnect on an explicit disconnect request. However, forcing a connect attempt while the client's reconnect handler is enabled, causes the reconnect handler to quit. We have to isolate the reason of the disconnect and only manually reconnect if the reconnect handler isn't running.

@patrykcieszkowski patrykcieszkowski requested a review from zarianec May 9, 2022 22:20
Copy link
Contributor

@zarianec zarianec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. Thanks @patrykcieszkowski

@jimaek jimaek merged commit 6d94ff3 into master May 10, 2022
@jimaek jimaek deleted the fix-connect-stops-reconnect branch May 10, 2022 19:58
@github-actions
Copy link

🎉 This PR is included in version 0.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants