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 proper cleanup of subscribers #14

Merged
merged 1 commit into from
Mar 12, 2023
Merged

Ensure proper cleanup of subscribers #14

merged 1 commit into from
Mar 12, 2023

Conversation

ff14wed
Copy link
Owner

@ff14wed ff14wed commented Mar 12, 2023

In the case of server shutdown, this change ensures that we abort the tasks responsible for handling client connections before fully shutting down. This allows the named pipe connections to be dropped properly. (Fixes #13)

In the case of a client disconnection at any point in the message loop for the subscriber, the server will ensure that the disconnect is handled instead of exiting the subscriber handler immediately. This fixes a rare issue wherein the server does not exit when the last client disconnects because the disconnection happened while the server is sending a message to the subscriber.

In the case of server shutdown, this change ensures that we abort
the tasks responsible for handling client connections before
fully shutting down. This allows the named pipe connections to be
dropped properly. (Fixes #13)

In the case of a client disconnection at any point in the message loop
for the subscriber, the server will ensure that the disconnect is
handled instead of exiting the subscriber handler immediately. This
fixes a rare issue wherein the server does not exit when the last client
disconnects because the disconnection happened while the server is
sending a message to the subscriber.
@ff14wed ff14wed merged commit 8449785 into main Mar 12, 2023
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.

Zombie named pipe handle after unloading DLL from process
1 participant