-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wake-up channel for server allowing shutdown
This commit has the server_socket.accept() be in a select! statement along with a mpsc channel. By signalling the channel a client loop can stop the server. Right now this is only useful for simplying the integration test as it allows ending the server in a different way. Later it will be useful for error handling for errors that are fatal and require the whole server to shut down.
- Loading branch information
1 parent
fd53dd9
commit 3eb9ae9
Showing
2 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters