Skip to content

Fix CommandWriter.cs dispose#926

Merged
mtmk merged 1 commit into
mainfrom
fix-command-writer-dispose
Aug 13, 2025
Merged

Fix CommandWriter.cs dispose#926
mtmk merged 1 commit into
mainfrom
fix-command-writer-dispose

Conversation

@mtmk

@mtmk mtmk commented Aug 12, 2025

Copy link
Copy Markdown
Member

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.

@scottf scottf left a comment

Copy link
Copy Markdown
Contributor

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

2 participants