-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: command response processing issues (#40)
Fix command response processing issues introduced by notification handling. This includes: Random hangs due to writes to channels with no readers. Potential race when reusing client response buffer. Close of notify channel while handler was still running. Eliminated race on IsConnected check in ExecCmd. Also: Use just \n for keep-alive to reduce data sent across the wire. Wrap more errors to improve error reporting. Remove io.(Reader|Writer) wrapping as that breaks scanner io.EOF handling. --------- Co-authored-by: HalloTschuess <hallo.ich.f@gmail.com>
- Loading branch information
1 parent
6cd984d
commit 01bb4ee
Showing
5 changed files
with
150 additions
and
68 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
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
Oops, something went wrong.