-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retry in decoder if Read() returns 0 bytes read with nil error (#387)
Previously, decoder did not properly handle the scenario of Read() returning 0 bytes read with nil error. Fix this by retrying the read on (0, nil). While at it, also refactor the error handling and add more tests to reach 100% code coverage for stream.go.
- Loading branch information
Showing
3 changed files
with
621 additions
and
288 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
Oops, something went wrong.