Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Conversation

@isra17
Copy link
Member

@isra17 isra17 commented Aug 14, 2024

I found a race condition in aiormq where publish (and perhaps other blocking calls) can await forever in case of rabbitmq disconnection. Even the timeout param is not enough to protect against this.

The internal timeout is implemented through asyncio.wait_for anyway, so here it is. There might be a similar issue with the consumer message ack, will have a quick look at this too.

@isra17
Copy link
Member Author

isra17 commented Aug 14, 2024

Yup, every single aiormq calls seems to be one disconnect away from deadlocking.

@isra17 isra17 merged commit 2c79613 into main Aug 14, 2024
@isra17 isra17 deleted the isra/publish-timeout branch August 14, 2024 20:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants