<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 11 Jun 2013, at 10:32, <a href="mailto:reddylast@gmail.com">reddylast@gmail.com</a> wrote:</div><blockquote type="cite">Hi,<div><br></div><div>When a consumer is consuming messages from a queue and if suddenly I restart rabbitmq server (or system got some technical problem)&nbsp;&nbsp;then the consumer stops to consume messages from queue&nbsp;<span style="font-size: 13px;">(because it got disconnected)</span><span style="font-size: 13px;">&nbsp;&nbsp;</span><font size="2">but it keep&nbsp;listening to the queue. In this way my consumer script keep running in&nbsp;background&nbsp;without&nbsp;doing anything. In such&nbsp;circumstances (where consumer got disconnected internally) consumer script &nbsp;should get an exception or&nbsp;</font>should<font size="2">&nbsp;stop running immediately because there is no benefit of it (as it doesn't get auto connected)..</font></div><div><font size="2"><br></font></div><div><font size="2">Does anyone know how to get over this problem ?&nbsp;</font></div><div><font size="2"><br></font></div></blockquote><div><br></div><div>Turn on AMQP heartbeats.</div><div><br></div><div>Cheers,</div><div>Tim</div></div></body></html>