<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) then the consumer stops to consume messages from queue <span style="font-size: 13px;">(because it got disconnected)</span><span style="font-size: 13px;"> </span><font size="2">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 </font>should<font size="2"> 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 ? </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>