Open ejsmont-artur opened 12 years ago
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 exception and flagging connection as lost would do so that client of the lib could decide what to do :)
I guess reconnection count could be a custom param as next step.
Thanks On Jul 17, 2012 12:47 AM, "marklr" < reply@reply.github.com> wrote:
Do you have any suggestions on how you'd add buffering messages that need to be sent post-reconnection?
Reply to this email directly or view it on GitHub: https://github.com/dejanb/stomp-php/issues/12#issuecomment-7008049
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. But If you provide me some testcode to reproduce the error I can take a look. But I won´t promise a solution in the near future.
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