Hello there
I wrote a web application with flask that in the application startup I try to create a connection pool of pika.BlockingConnection and share this connection pool in my app.
**********************
global connections
connections = [pika.BlockingConnection(pika.connection.URLParameters(connection_url))
for i in range(pool_size)]
**********************
I do not close the BlockingConnections at all. I just use one of these connections in connections list and return it back to the list again.
But my problem is after creating this connection pool after 20 sec(heartbeat=20) all of my connections will be closed by rabbitmq with log: missed heartbeats from client, timeout: 20s
it seems that pika.BlockingConnection does not send heartbeat frames at all.
What is my mistake in this implementation?