[rabbitmq-discuss] Destroying connection after ShutdownSignalException

Michael Klishin mklishin at gopivotal.com
Tue Oct 29 16:13:57 GMT 2013


On 29 Oct 2013, at 19:37, Abid Varshani <abid.varshani at gmail.com> wrote:

> What is the best way to destroy the connection after ShutdownSignalException

You don’t need to release any connections explicitly but there is com.rabbitmq.client.Connection#isOpen.

list_connections won’t notice connection loss immediately because of how TCP works.

Feel free to take a look at Lyra and how it performs recovery:
https://github.com/jhalterman/lyra

MK

Software Engineer, Pivotal/RabbitMQ




More information about the rabbitmq-discuss mailing list