开发者

Carrot (Python) [errno 10054] An existing connection was forcibly closed by the remote host

开发者 https://www.devze.com 2023-02-03 21:20 出处:网络
We are using Carrot in our Python project. I wrote a P开发者_开发技巧ython script acting as the consumer of the message queue. I invoked this Python script using command line shell in Windows 7 as

We are using Carrot in our Python project. I wrote a P开发者_开发技巧ython script acting as the consumer of the message queue. I invoked this Python script using command line shell in Windows 7 as

python consumer.py

However, after a while, the running session was aborted and the error is:

[errno 10054] An existing connection was forcibly closed by the remote host

The producer session is still running fine on the Linux server. Just wondering how can I fix this and have a long running consumer session on Windows .


I don't know Carrot/AMQP, but I'd first of all check if the AMQP server logged an error at the time your client got disconnected. It could be that you just have to expect these errors to occur from time to time and upon disconnection, catch the exception(?) and reestablish the connection.

0

精彩评论

暂无评论...
验证码 换一张
取 消