Closed kristaps closed 10 years ago
I do see this behavior, I'm doing some tracing to figure it out. Thanks for the example code, it's very helpful.
It looks like it has to do with how rabbitpy handles received, yet unprocessed messages when closing the channel. I should have a fix for this shortly.
Exact bug was not checking to see if the queue was being consumed in no-ack mode prior to trying to nack any received messages that were unprocessed.
This is fixed in master and will be released as 0.16.0 soon.
Running the example program at https://gist.github.com/kristaps/9985184 and pressing Ctrl-C on both clients causes the client where Ctrl-C was pressed first to throw an exception after a while, the other client seems to complete normally.
The traceback:
The example program should be run something like this:
I don't see anything obviously wrong in the code, am I missing something?