我正在使用rabbitpy python库与RabbitMQ交互。我设计了一个具有发布者方法和消费者方法的通信类。该通信类的实例在单独的线程中运行。
如果我开始频繁请求,RabbitMQ 会关闭连接。这是错误日志:
=ERROR REPORT==== 4-Apr-2014::14:12:52 ===
AMQP connection <0.13197.22> (running), channel 1 - error:
{amqp_error,unexpected_frame,
"expected content header for class 60, got non content header frame instead",
'basic.publish'}
=INFO REPORT==== 4-Apr-2014::14:12:52 ===
closing AMQP connection <0.13197.22> (127.0.0.1:52234 -> 127.0.0.1:5672)
=INFO REPORT==== 4-Apr-2014::14:12:52 ===
accepting AMQP connection <0.13263.22> (127.0.0.1:52237 -> 127.0.0.1:5672)
rabbitpy 是一个线程安全库(它是这么说的)。
为什么我会遇到这样的问题?
最佳答案
关于python - RabbitMQ 不断关闭连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22864473/