gmr / rabbitpy

A pure python, thread-safe, minimalistic and pythonic RabbitMQ client library
http://rabbitpy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
242 stars 58 forks source link

RabbitMQ keeps closing connections #24

Closed ceremcem closed 10 years ago

ceremcem commented 10 years ago

As I asked in stackoverflow.com, http://stackoverflow.com/questions/22864473/rabbitmq-keeps-closing-connection, if I make frequent requests RabbitMQ closes connection.

I was using amqp-lib before, the same thing had been happening whether I make requests frequently or not.

gmr commented 10 years ago

Do you have any example code I can see?

ceremcem commented 10 years ago

This is a bit strange. I have faced with the issue and used threading.RLock, then problem is solved. Now I created a test procedure to send you that example code where I created 100 publisher threads sending 100 messages per thread and 100 consumer threads (with a topic exchange) getting messages from the same exchange. I would expect the same problem, but there isn't any unexpected result. Let me dig more.

ceremcem commented 10 years ago

My project is running without my patch for the last 18 hours, and a crash should occur within 10 minutes or so. I can say this issue did not happen again. Issue may be closed.