[rabbitmq-discuss] Consumer never stops listening to queue
tim at rabbitmq.com
Tue Jun 11 10:35:42 BST 2013
On 11 Jun 2013, at 10:32, reddylast at gmail.com wrote:
> When a consumer is consuming messages from a queue and if suddenly I restart rabbitmq server (or system got some technical problem) then the consumer stops to consume messages from queue (because it got disconnected) but it keep listening to the queue. In this way my consumer script keep running in background without doing anything. In such circumstances (where consumer got disconnected internally) consumer script should get an exception or should stop running immediately because there is no benefit of it (as it doesn't get auto connected)..
> Does anyone know how to get over this problem ?
Turn on AMQP heartbeats.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss