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

dispatch queue back-pressure and deadlock #3035

Open
kostasrim opened this issue May 9, 2024 · 0 comments
Open

dispatch queue back-pressure and deadlock #3035

kostasrim opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kostasrim
Copy link
Contributor

dispatch queue can deadlock:

  • if a pubsub connection both publishes and subscribes to the same channel and sends multiple messages that the queue is:
    Publish <----- Publish <----- Publish <----- ends up Publish <----- SendPubMessage <----- SendPubMessage <----- SendPubMessage and deadlocks because the top message Publish now will block on EnsureBelowLimit.

  • If intrusive messages populate the queue recursively nonstop then the rest of the queue will starve

@kostasrim kostasrim added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant