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

BlockingConnection basic_publish delays exchange not found error until next channel operation #474

Closed
leth opened this issue May 21, 2014 · 3 comments

Comments

@leth
Copy link

leth commented May 21, 2014

If you try to publish a message to an exchange which does not exist, the blocking connection channel will not raise an exception until the next channel operation is attempted.

A workaround seems to be to call process_data_events() on the connection after the channel publish call.

@vitaly-krugl
Copy link
Member

@leth, that's the nature of BlockingConnection. If you're not executing code in BlockingConnection, then it's not processing input either. If you're using RabbitMQ that supports Publisher Acknowledgements, then you can enable it on a given channel via channel.confirm_delivery(), and you should then get the "exchange not found" error before basic_publish returns.

@vitaly-krugl
Copy link
Member

Works as intended. Let's close.

@vitaly-krugl
Copy link
Member

Please see my earlier comments. This feature works as intended in BlockingConnection. SelectConnection and other asynchronous adapters can be more responsive if used appropriately in an I/O-bound applications.

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