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

App crashes when connection closes #325

Open
gitzko opened this issue Aug 2, 2023 · 2 comments
Open

App crashes when connection closes #325

gitzko opened this issue Aug 2, 2023 · 2 comments

Comments

@gitzko
Copy link

gitzko commented Aug 2, 2023

I've inherited an old C++ codebase, and seems that the process crashes when RabbitMQ connection closes.
Is this the normal behaviour? Or is there a way to handle disconnections in SimpleAmqpClient?

@alanxz
Copy link
Owner

alanxz commented Aug 3, 2023

The library itself should not crash when the RabbitMQ connection closes (if it does, its a bug). It will throw an exception when an API call is made with a connection that has been closed.

If you are observing a bug here, please provide a stacktrace, and the type of crash being observed, in addition to the version of SimpleAmqpClient, rabbitmq-c, and platform being used.

@gitzko
Copy link
Author

gitzko commented Aug 5, 2023

Which exception will it throw when the RabbitMQ server goes down? Like when one of the RabbitMQ nodes in the cluster goes down for patching?

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