Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue ruby-amqp#549: Transition connection to closed state when recov…
…ery attempts are exhausted When the RabbitMQ server goes down, the session attempts to continually reconnect, only stopping once the recovery_attempts threshold is met (or forever is this parameter is not provided). In the former case, there are no exceptions raised to indicate to clients that new messages are not being processed. This patch provides that by initiating close from the session, which will close related channels and the reader loop. Then, an exception will be thrown when subsequent operations are performed.
- Loading branch information