mirror of https://github.com/docker/cli.git
2d5f041bde
Changes the `Read` and `Write` error handling
logic to return the original error while closing
the connection. We still skip calling `handleEOF`
if already closing the connection.
Fixes the flaky `TestCloseWhileWriting` and
`TestCloseWhileReading` tests.
Co-authored-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
commandconn.go | ||
commandconn_unix_test.go | ||
pdeathsig_linux.go | ||
pdeathsig_nolinux.go | ||
session_unix.go | ||
session_windows.go |