-
Notifications
You must be signed in to change notification settings - Fork 15
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
Better reconnection handling #50
Comments
@KSDaemon I tried to fix this issue, but then I realized some things. A transport may have issues before and after the session creation. For example when a cluster is rolled out and the router is avalable after the client. The client would have to try to reconnect until the router is available. Also if the router for some reason crashes after the session creation and the client then reconnects after the router has been restarted. Connectanum-dart only reconnects if transport layer issues appears. If the router kills the connection with an I had to fix one issue. When adding the So I think:
Should lead to a reconnect, if configured
This should be configurable. The client currently has an connectanum-dart/lib/src/client.dart Lines 100 to 112 in 3bbb488
If a session has been esteblished an connectanum-dart/lib/src/protocol/session.dart Lines 180 to 185 in 3bbb488
So what do you think? I think I should make it more configurable. Add a |
Copy pasted main points from #47 for context:
So in the first run, there are the next points of connection failure and reconnection:
The text was updated successfully, but these errors were encountered: