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

2.3k views Asked by At

We are using Carrot in our Python project. I wrote a Python 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 .

1

There are 1 answers

2
aknuds1 On

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.