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 connection monitoring #31

Merged
merged 2 commits into from
May 30, 2024
Merged

Fix connection monitoring #31

merged 2 commits into from
May 30, 2024

Conversation

ziopio
Copy link
Member

@ziopio ziopio commented May 29, 2024

Problem

The state machine would get stuck in connecting state if the first connection attempt failed.

Bug

We were monitoring the gun process only after the WS upgrade, missing out an econnrefused error.

Solution

Monitor the gun process right away and handle the possible disconnection in the connecting state of the gen_statem.

Waiting for the WS stream does not allow us to catch the econnrefused error
@ziopio ziopio marked this pull request as ready for review May 30, 2024 07:50
@ziopio ziopio requested a review from maehjam May 30, 2024 07:50
@ziopio ziopio merged commit 6fe592a into main May 30, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants