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

Ensure DisposeAsync and Dispose are idempotent #1752

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lukebakken
Copy link
Contributor

Fixes #1749

Fixes #1749

* Add test project
* Add `FirstChanceException` logging.
* Add code to repeatedly close connection.
* Allow passing hostname to GH-1749 program as the first arg.
* Toxiproxy tests fixup.
* Standardize on `_disposedValue` name.
* Ensure `_disposedValue` is set in `finally` block.
* Add lock object for disposal of Channels and Connections. Note: a `SemaphoreSlim` can't be used because it must be disposed as well, and that can't happen cleanly in a `Dispose` method.
@lukebakken lukebakken force-pushed the rabbitmq-dotnet-client-1749 branch from 26bc93c to 30a244d Compare December 23, 2024 19:52
* Modify `CreateChannel` app to try and trigger GH1751
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.

ObjectDisposedException when connection is closed from the server
1 participant