Skip to content

Conversation

@mtmk
Copy link
Member

@mtmk mtmk commented Dec 12, 2025

I noticed this when running tests in Rider where process sticks around even after tests finishes.
While 'flushing' the buffers, ping in our implementation waits for the connecting to come back up and in the case of testing, that never happens, causing the process to hang.
There maybe other scenarios where service needs to be stopped and the server is not accessible, perhaps in IoT applications.

@mtmk mtmk requested a review from scottf December 12, 2025 12:08
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

# Conflicts:
#	tests/NATS.Client.Services.Tests/ServicesTests.cs
@mtmk mtmk merged commit e8527f2 into main Dec 17, 2025
21 checks passed
@mtmk mtmk deleted the fix-service-stop-hang branch December 17, 2025 10:38
mtmk added a commit that referenced this pull request Dec 17, 2025
* Fix service hangs when stopping (#1016)
* Add Timeout to Object Get Disposal (#1014)
* Add validation for subjects (#1017)
@mtmk mtmk mentioned this pull request Dec 17, 2025
mtmk added a commit that referenced this pull request Dec 17, 2025
* Fix service hangs when stopping (#1016)
* Add Timeout to Object Get Disposal (#1014)
* Add validation for subjects (#1017)
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.

3 participants