Significant Changes
- Fixed a case where Streams may continue to exist and block operations even after their Session has been closed. #127 ensures when a Session closes that blocking Stream operations exit as well.
- Allow Reads on locally closed streams. Prior to #131 calling
Close()
and thenRead()
on aStream
would fail.Close
should only indicate theStream
is done writing. The peer must callClose
beforeRead
considers the stream closed. See #131 for details. - Tests have been improved significantly. See below for details.
Full Changelog
- Fix function comments based on best practices from Effective Go by @Daanikus in #74
- Fix #72, abstract logger into interface by @wweir in #76
- Add ability to cancel Accept by passing a context by @evanphx in #80
- fix: typo by @testwill in #123
- chore: update tests to pass the race detector and linter by @rboyer in #130
- Streams should check for Session shutdown when waiting for data & clean up timers by @lattwood in #127
- Allow half-closed reads and test against TCP/TLS connections by @schmichael in #131
New Contributors
- @Daanikus made their first contribution in #74
- @wweir made their first contribution in #76
- @testwill made their first contribution in #123
- @rboyer made their first contribution in #130
- @lattwood made their first contribution in #127
- @schmichael made their first contribution in #131
Full Changelog: v0.1.1...v0.1.2