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 | ||
ssh | ||
connhelper.go | ||
connhelper_test.go |