DockerCLI/cli/connhelper/commandconn
Laura Brehm d5f564adaa
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>
2023-06-30 19:15:18 +02:00
..
commandconn.go commandconn: return original error while closing 2023-06-30 19:15:18 +02:00
commandconn_unix_test.go commandconn: return original error while closing 2023-06-30 19:15:18 +02:00
pdeathsig_linux.go commandconn: set SysProcAttr.Setsid 2019-03-06 13:22:54 +09:00
pdeathsig_nolinux.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
session_unix.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
session_windows.go commandconn: set SysProcAttr.Setsid 2019-03-06 13:22:54 +09:00