I am using:
I have a queue that is:
In my application there is an asynchronous consumer receiving the messages through a callback. The problem happens when I try to simulate a connection failure by disabling the network communication with the broker. After the connection is restablished the queue (in the web administration interface) is showing two consumers connected with the same consumer tag, but with different port numbers.
When I stop the app one of the consumers disappears, but the other one remains connected, thus the queue is not deleted. Is this expected or I do I have to change something to avoid this?
There were two connections because the default heartbeat is 580 seconds, so it would take that time to the server detects it.
When that value was set to a lower value the first connection was closed right away. More details about the heartbeat option in Detecting Dead TCP Connections with Heartbeats
Thanks Gas for the tip of using the RabbitMQ user group forum.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With