DockerCLI/cli/connhelper
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 commandconn: return original error while closing 2023-06-30 19:15:18 +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-09 11:24:19 +02:00
connhelper_test.go commandconn: don't return error if command closed successfully 2023-06-09 11:24:19 +02:00