Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interrupted pending writes on socket write shutdown from eager close
Some channel/connection implementations may signal EOF to parallel readers before tasks related to the CloseWrite (shutdown) have completed progressing. This creates the potential for a race with a parallel Close(), leading to a premature abort of certain activies (cancelling the send of buffered data). This change ensures that the two goroutines copying each direction of the stream wait until CloseWrite has completed in both directions before fully closing. Signed-off-by: Jason T. Greene <[email protected]>
- Loading branch information