Skip to content

Conversation

@mtmk
Copy link
Member

@mtmk mtmk commented Aug 12, 2025

This pull request updates the DisposeAsync method in CommandWriter.cs to ensure that both _cts and _ctsReader cancellation tokens are properly canceled during disposal, improving resource cleanup and preventing potential hangs.

Copy link
Contributor

@scottf scottf left a comment

Choose a reason for hiding this comment

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

LGTM

@mtmk mtmk merged commit eead51a into main Aug 13, 2025
31 of 42 checks passed
@mtmk mtmk deleted the fix-command-writer-dispose branch August 13, 2025 13:13
mtmk added a commit that referenced this pull request Aug 15, 2025
* Fix pending message reset logic in NatsJSConsume (#930)
* Fix CommandWriter.cs dispose (#926)
mtmk added a commit that referenced this pull request Aug 21, 2025
* Fix pending message reset logic in NatsJSConsume (#930)
* Fix CommandWriter.cs dispose (#926)
fess9999 pushed a commit to TouchPlusIE/nats.net that referenced this pull request Sep 10, 2025
fess9999 pushed a commit to TouchPlusIE/nats.net that referenced this pull request Sep 10, 2025
* Fix pending message reset logic in NatsJSConsume (nats-io#930)
* Fix CommandWriter.cs dispose (nats-io#926)
@mtmk mtmk mentioned this pull request Sep 22, 2025
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.

Nats Client causing deadloop during DisposeAsync

3 participants