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 aStreamwould fail.Closeshould only indicate theStreamis done writing. The peer must callClosebeforeReadconsiders 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 https://github.com/hashicorp/yamux/pull/74
- Fix hashicorp/yamux#72, abstract logger into interface by @wweir in https://github.com/hashicorp/yamux/pull/76
- Add ability to cancel Accept by passing a context by @evanphx in https://github.com/hashicorp/yamux/pull/80
- fix: typo by @testwill in https://github.com/hashicorp/yamux/pull/123
- chore: update tests to pass the race detector and linter by @rboyer in https://github.com/hashicorp/yamux/pull/130
- Streams should check for Session shutdown when waiting for data & clean up timers by @lattwood in https://github.com/hashicorp/yamux/pull/127
- Allow half-closed reads and test against TCP/TLS connections by @schmichael in https://github.com/hashicorp/yamux/pull/131
New Contributors
- @Daanikus made their first contribution in https://github.com/hashicorp/yamux/pull/74
- @wweir made their first contribution in https://github.com/hashicorp/yamux/pull/76
- @testwill made their first contribution in https://github.com/hashicorp/yamux/pull/123
- @rboyer made their first contribution in https://github.com/hashicorp/yamux/pull/130
- @lattwood made their first contribution in https://github.com/hashicorp/yamux/pull/127
- @schmichael made their first contribution in https://github.com/hashicorp/yamux/pull/131
Full Changelog: https://github.com/hashicorp/yamux/compare/v0.1.1...v0.1.2