robut icon indicating copy to clipboard operation
robut copied to clipboard

Reconnect on failures

Open justinweiss opened this issue 13 years ago • 3 comments

From the xmpp4r docs:

If you want your connection to survive disconnects and timeouts, catch exception in Stream#on_exception and re-call Client#connect and Client#auth. Don‘t forget to re-send initial Presence and everything else you need to setup your session.

justinweiss avatar May 12 '11 04:05 justinweiss

Big +1. I may take a crack at this this week.

ajsharp avatar Sep 27 '11 20:09 ajsharp

I fixed by far our most common crash (UTF-8 characters) but this would still be really nice to have.

justinweiss avatar Sep 27 '11 20:09 justinweiss

I've got Robut running on a MacMini in our office. We're using launchd to make sure Robut runs when the system boots, and restart it on failure, etc...

However, Robut will occasionally get disconnected (not sure why, and nothing shows up in the logs), and then I have to manually restart the service to get it to reconnect. Launchd doesn't help here as it the service doesn't "fail", it just disconnects. Auto-reconnecting on failure would go a long way to keeping our Robut up and running.

stevenharman avatar Oct 25 '11 13:10 stevenharman