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

Notification for blocked connection #443

Open
neha2007 opened this issue Dec 21, 2021 · 2 comments
Open

Notification for blocked connection #443

neha2007 opened this issue Dec 21, 2021 · 2 comments

Comments

@neha2007
Copy link

neha2007 commented Dec 21, 2021

Describe the bug
Alarm Notification is not received when the RMQ connection is in blocked state due to reaching the disk space low watermark.

Expected behavior and actual behavior
Alarm should be received. But no indication is received by the publisher client. Hence the publisher keeps on publishing the messages even though the connection is in blocked state.

https://www.rabbitmq.com/connection-blocked.html

@neha2007
Copy link
Author

@EmielBruijntjes please let me know how can this be achieved?

@EmielBruijntjes
Copy link
Member

AMQP-CPP does not yet support this. You will need to send in a pull request to add this feature. The way I see it now, you can add two methods to the AMQP::Handler class:

virtual void onBlocked(AMQP::Connection *);
virtual void onUnblocked(AMQP::Connection *);

Every time that we receive a 'blocked' or 'unblocked' frame we can then call these methods.

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

No branches or pull requests

2 participants