DockerCLI/cli/connhelper/commandconn
Laura Brehm 2d5f041bde
commandconn: return original error while closing
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 d5f564adaa)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-06-30 19:23:36 +02:00
..
commandconn.go commandconn: return original error while closing 2023-06-30 19:23:36 +02:00
commandconn_unix_test.go commandconn: return original error while closing 2023-06-30 19:23:36 +02:00
pdeathsig_linux.go commandconn: set SysProcAttr.Setsid 2019-03-06 13:22:54 +09:00
pdeathsig_nolinux.go gofmt with go1.17 2022-03-26 20:21:00 +01:00
session_unix.go gofmt with go1.17 2022-03-26 20:21:00 +01:00
session_windows.go commandconn: set SysProcAttr.Setsid 2019-03-06 13:22:54 +09:00