Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bytestream] be careful not to hang goroutines writing to putResult
If this goroutine blocks trying to write to putResult after Write exits then it will leak. We can avoid this by making putResult a buffered channel with length 1, since a Write call will send to this channel at most once. Then that single send will never block, and the goroutine can exit. While we're at it, let's make recvResult buffered too, just in case. Fixes #444.
- Loading branch information