-
Notifications
You must be signed in to change notification settings - Fork 46
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
Client not handling disconnections on write #12
Comments
Do you have any suggestions on how you'd add buffering messages that need to be sent post-reconnection? |
Well I did not even expect to have this in place. I thought throwing I guess reconnection count could be a custom param as next step. Thanks
|
I think the optimal solution would be to buffer (in _writeFrame()) and if we pass a threshold of failed reconnects, then throw an exception. Otherwise, just dump it all once we're reconnected. |
I've encountered the same problem when trying to test failover except in my case it locked up my ubuntu machine and I had to hard boot it. Might want to add a delay before trying to reconnect ;) |
any idea if you are going to fix this? Issue was raised 11 months ago. |
Yes I like to but I´m out of time and have no running project where I use the client at the moment. So my afford to fix this is not this big. |
Hi there
Sorry for so many bad news :) Another use case is when server disconnects after connection is established and before message is sent.
I create a loop of 100K messages to be sent and right after i kick it off i kill the server. Client dies with a stack smash:
Thanks
Art
The text was updated successfully, but these errors were encountered: