Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deadlock between publishing and receiving confirms #25

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

benmoss
Copy link

@benmoss benmoss commented Nov 16, 2021

Confirms come in asynchronously and are put onto the confirmation channel. This will block until the consumer receives on that channel. If a user is alternating publishing and consuming confirms, a confirm that comes in during a publish will cause a deadlock.

Fixes #10

Confirms come in asynchronously and are put onto the confirmation
channel. This will block until the consumer receives on that channel.
If a user is alternating publishing and consuming acknowledgements, an
acknowledgement that comes in during a publish will cause a deadlock.
@benmoss benmoss force-pushed the fix-confirms-deadlock branch from 2a100fa to 08f1cc5 Compare November 16, 2021 20:28
@michaelklishin
Copy link
Member

Using different muteness for different owned resources makes sense.

@MirahImage MirahImage merged commit 52a5b5a into rabbitmq:main Nov 17, 2021
@lukebakken lukebakken added this to the 1.2.0 milestone Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A possible dead lock when publishing message with confirmation
4 participants