[rabbitmq-discuss] Consumer never stops listening to queue

Tim Watson tim at rabbitmq.com
Tue Jun 11 10:35:42 BST 2013

On 11 Jun 2013, at 10:32, reddylast at gmail.com wrote:
> Hi,
> 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...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130611/495f77ce/attachment.htm>

More information about the rabbitmq-discuss mailing list