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 BasicRabbitService disconnection #80

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

jkamleh
Copy link
Contributor

@jkamleh jkamleh commented Nov 13, 2023

  • Disposing channel and connection objects is not enough. See https://www.rabbitmq.com/dotnet-api-guide.html#disconnecting
  • It's generally not considered good practice to lock on this because code from other classes can potentially acquire a lock on the same object leading to deadlocks. Refactored to new object like we use elsewhere in this project

- Disposing channel and connection objects is not enough. See https://www.rabbitmq.com/dotnet-api-guide.html#disconnecting
- It's generally not a good practice to lock on 'this' because code from other classes can potentially acquire a lock on the same object leading to deadlocks. Refactored to new object like what is used elsewhere in this project
@blckmn blckmn merged commit 12b2624 into blckmn:master Nov 13, 2023
1 check passed
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