[rabbitmq-discuss] default timeout on server
Nishanth
nishanth at urbanmapping.com
Thu Mar 7 23:25:42 GMT 2013
Hi Simon,
Would you please help me understand how to turn on heartbeats?
Should I turn it on in the client? My code looks like below.
But, after 60 seconds, rabbitmq closes the connection saying heartbeat
timeout.
parameters =
pika.ConnectionParameters(host=RABBITMQ_HOSTNAME,heartbeat_interval=60,credentials=pika.PlainCredentials(RABBITMQ_USERNAME,RABBITMQ_PASSWORD))
connection = pika.SelectConnection(parameters,on_connected)
Thanks
Nishanth
On Monday, January 23, 2012 7:16:33 AM UTC-8, Simon MacMullen wrote:
>
> On 23/01/12 15:13, S Ahmed wrote:
> > Does rabbit server have a default time-out for connections that has to
> > be overridden?
>
> No.
>
> > i.e. Our clients are opening connections for x days (persistant
> > connections into rabbit), and connections are timing out on our client
> > applications within a few minutes.
>
> Whenever this question has come up in the past it turns out that some
> piece of networking hardware is causing the problem.
>
> You may find that turning on AMQP heartbeats in your clients creates
> enough network traffic to fool your infrastructure...
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, VMware
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq... at lists.rabbitmq.com <javascript:>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130307/4435bd8a/attachment-0001.htm>
More information about the rabbitmq-discuss
mailing list