Hi Simon,<div><br></div><div>Would you please help me understand how to turn on heartbeats?</div><div><br></div><div>Should I turn it on in the client? My code looks like below.</div><div><br></div><div>But, after 60 seconds, rabbitmq closes the connection saying heartbeat timeout.&nbsp;</div><div><br></div><div><div>parameters &nbsp; &nbsp; &nbsp;= &nbsp; &nbsp; &nbsp; pika.ConnectionParameters(host=RABBITMQ_HOSTNAME,heartbeat_interval=60,credentials=pika.PlainCredentials(RABBITMQ_USERNAME,RABBITMQ_PASSWORD))</div><div>connection &nbsp; &nbsp; &nbsp;= &nbsp; &nbsp; &nbsp; pika.SelectConnection(parameters,on_connected)</div><div><br></div>Thanks</div><div>Nishanth<br>On Monday, January 23, 2012 7:16:33 AM UTC-8, Simon MacMullen wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 23/01/12 15:13, S Ahmed wrote:<br>&gt; Does rabbit server have a default time-out for connections that has to<br>&gt; be overridden?<p>No.</p><p>&gt; i.e. Our clients are opening connections for x days (persistant<br>&gt; connections into rabbit), and connections are timing out on our client<br>&gt; applications within a few minutes.</p><p>Whenever this question has come up in the past it turns out that some <br>piece of networking hardware is causing the problem.</p><p>You may find that turning on AMQP heartbeats in your clients creates <br>enough network traffic to fool your infrastructure...</p><p>Cheers, Simon</p><p>-- <br>Simon MacMullen<br>RabbitMQ, VMware<br>______________________________<wbr>_________________<br>rabbitmq-discuss mailing list<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="57NI42fEgnMJ">rabbitmq...@lists.<wbr>rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<wbr>cgi-bin/mailman/listinfo/<wbr>rabbitmq-discuss</a><br></p><p></p><p></p><p></p><p></p><p></p></blockquote></div>