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

fix connection timeout block interface #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicolasiannarilli
Copy link

RabbitMqEventListenerProviderFactory is called for each click on interface. Creating a connection in this factory is useless. It seems to be in the same thread as the interface and can block user if rabbitmq is down.

#30

Comment on lines +79 to +80
try (Connection conn = cfg.newConnectionFactory().newConnection();
Channel channel = conn.createChannel()) {
Copy link

@ammmze ammmze Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...this creates a new connection and channel for every notification? That seems to go against what RabbitMQ suggests which says both should be long-lived / re-used...and reverses the efforts put in with the last merged PR #27. See here.

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

Successfully merging this pull request may close these issues.

2 participants