DockerCLI/cli/connhelper
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 commandconn: return original error while closing 2023-06-30 19:23:36 +02:00
ssh connhelper: Allow socket path when using SSH 2023-03-07 00:48:27 +01:00
connhelper.go commandconn: don't return error if command closed successfully 2023-06-30 19:23:12 +02:00
connhelper_test.go commandconn: don't return error if command closed successfully 2023-06-30 19:23:12 +02:00