Skip to content

Commit

Permalink
Ensure proper cleanup of subscribers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ff14wed committed Mar 12, 2023
1 parent aa9ea6b commit 8449785
Showing 1 changed file with 285 additions and 277 deletions.
Loading

0 comments on commit 8449785

Please sign in to comment.