Skip to content

How to properly recover from initial connection failures? #782

Closed Answered by acogoluegnes
pvaiko asked this question in Q&A
Discussion options

You must be logged in to vote

I pushed a fix (#783) to close the Netty event loop group in case of initialization failure. You can also try the lazyInit flag: you'll be able to create the environment instance but each call to it will throw an exception until it manages to connect to the broker. You still have to properly close the environment, whether it is connected or not.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by acogoluegnes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants