Currently when a heartbeat is detected, Bunny::Session could be left in a state other than "closed".
Even if connection recovery is underway, the correct state for such connection is nonetheless "closed".
With this change Bunny::Session#send_frameset_without_timeout and friends could then throw a ConnectionClosedError which would be visible to clients. This is closer to how some other clients (e.g. Java) work.
Currently when a heartbeat is detected,
Bunny::Session
could be left in a state other than "closed". Even if connection recovery is underway, the correct state for such connection is nonetheless "closed".With this change
Bunny::Session#send_frameset_without_timeout
and friends could then throw aConnectionClosedError
which would be visible to clients. This is closer to how some other clients (e.g. Java) work.@acogoluegnes @lukebakken FYI.