-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(issue #7) Do some clean up when server sockets close
Clients connecting to pyDriveWire over a socket can terminate suddenly. If the clients opened Virtual Serial channels those can remain open and may cause problems when the client reconnects. The fix adds a callback mechanism to DWServerSocket and DWSimpleSocket when the connection closes. The callback is set to the Server's cmdInit method. This resets all the open disk files and closes all of the Virtual Serial channels.
- Loading branch information
Showing
2 changed files
with
18 additions
and
5 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