Skip to content

Fix shutdown race with plugins#60

Merged
dallison merged 6 commits intomainfrom
shutdown_race
Apr 15, 2026
Merged

Fix shutdown race with plugins#60
dallison merged 6 commits intomainfrom
shutdown_race

Conversation

@dallison
Copy link
Copy Markdown
Owner

This fixes a race with shutdown of the server. Plugins that create a publisher (or subscriber) need to delete them when they shut down. However, the server will stop the listener coroutine at some point and this may prevent the client from connecting to the server to delete the publisher or subscriber. The fix is to prevent the shutdown of the listener coroutine until all other coroutines have stopped.

Dave Allison and others added 6 commits April 15, 2026 10:59
Resolve conflict in client_test.cc, keeping both the free function
CreatePublisher/CreateSubscriber tests from main and the PluginTest
heartbeat fixture from this branch.

Made-with: Cursor
@dallison dallison merged commit 235b7eb into main Apr 15, 2026
6 checks 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.

1 participant