mosquito / aio-pika

AMQP 0.9 client designed for asyncio and humans.
https://aio-pika.readthedocs.org/
Apache License 2.0
1.23k stars 187 forks source link

Fix race condition in RobustChannel in reopen/ready #566

Closed isra17 closed 1 year ago

isra17 commented 1 year ago

@mosquito Here's a test that repro the infinite loop hang and a fix.

The last declare_queue is where the hang happen.

(See #565 )

coveralls commented 1 year ago

Coverage Status

coverage: 88.298% (+0.09%) from 88.213% when pulling 772aa7074bd928b498ff54b43698c7b8e882ec76 on Flared:isra/fix-race-condition-hang into 6024d87740e33f2d3e8556ab2f46b517052e8326 on mosquito:master.