-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: more carefully handle 'benign' connection loss
This changes the behaviour of the `ConnectionIncoming` pseudo-stream to signal end-of-stream when the connection closes for a 'benign' reason, rather than returning an error. This makes it much easier to implement message polling for callers, without them having to apply their own filtering. Since we're doing this detection in a couple of places, it made sense to move the check into `ConnectionError` itself.
- Loading branch information
Showing
3 changed files
with
143 additions
and
39 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