mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Empirically, the retry in `_on_connection_closed` didn't actually work -- if a reconnect failed, that was it, and the exception handler didn't get run. A traceback would get logged, but all its frames were in Tornado or Pika, not our own code; presumably something magic and async was happening to the exception. Moreover, though we would make one attempt to reconnect if we had a connection that got closed, we didn't have any form of retry if the original attempt at connecting failed in the first place. Happily, upstream offers a perfectly reasonable bit of API that avoids both of these problems: the on-open-error callback. So use that.
13 KiB
13 KiB