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

How to tell if server closes the connection? #84

Open
Prushka opened this issue Aug 8, 2022 · 0 comments
Open

How to tell if server closes the connection? #84

Prushka opened this issue Aug 8, 2022 · 0 comments

Comments

@Prushka
Copy link

Prushka commented Aug 8, 2022

In my test, once the server forces a disconnection, the local conn will still be set and all client operations will fail.
mb.connect() doesn't get triggered in this case.

I couldn't find anything regarding this in the library. I had to check client calls for errors and manually close and connect.
Is this intended? Is there a better way to achieve this (e.g., check for broken pipe errors and reconnect)?

@Prushka Prushka changed the title How to tell if server disconnects? I couldn't find any mechanism. How to tell if server closes the connection? I couldn't find any mechanism. Aug 8, 2022
@Prushka Prushka changed the title How to tell if server closes the connection? I couldn't find any mechanism. How to tell if server closes the connection? Aug 8, 2022
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