[rabbitmq-discuss] Behind NAT issue with pika client :: keep alive :: heartbeat - How to detect dead connection

Simon MacMullen simon at rabbitmq.com
Tue May 15 11:22:01 BST 2012


On 15/05/12 08:49, alkos wrote:
> Also, I've tryed to put heartbeat=True, but then script keep closing
> and opens connection - probably due to callback function.

I'm not familiar with Pika, but usually heartbeat should be a number of 
seconds, with 0 to disable, not a boolean. I suspect heartbeats are what 
you need.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list