we are using Pika blocking connection adapter, we do not have idle timeout set in our stack, but still its timing out at 180 sec max, here is the sample code, we tried to introduce heartbeat but that is not helping at all ... this is very critical and any help is greatly appreciated
params = pika.URLParameters(url)
params.socket_timeout = 300
params.heartbeat_interval = 20
params.blocked_connection_timeout = 300
connection = pika.BlockingConnection(params)
channel = connection.channel()
channel.queue_declare(queue='hello')
channel.basic_publish(exchange='', routing_key='hello', body='Hello')
print "Sent 'Hello World!'"
print "sleeping "
time.sleep(280)
def callback(ch, method, properties, body):
print " Received %r" % (body)
channel.start_consuming()
channel.basic_consume(callback,
queue='hello',
no_ack=True)
connection.close()
--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.