DockerCLI/vendor/github.com/docker
Laura Brehm a5ebe2282a
commandconn: don't return error if command closed successfully
---
commandconn: fix race on `Close()`

During normal operation, if a `Read()` or `Write()` call results
in an EOF, we call `onEOF()` to handle the terminating command,
and store it's exit value.

However, if a Read/Write call was blocked while `Close()` is called
the in/out pipes are immediately closed which causes an EOF to be
returned. Here, we shouldn't call `onEOF()`, since the reason why
we got an EOF is because we're already terminating the connection.
This also prevents a race between two calls to the commands `Wait()`,
in the `Close()` call and `onEOF()`

---
Add CLI init timeout to SSH connections

---
connhelper: add 30s ssh default dialer timeout

(same as non-ssh dialer)

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2023-06-09 11:24:19 +02:00
..
distribution vendor: github.com/docker/distribution v2.8.2 2023-05-11 19:13:41 +02:00
docker commandconn: don't return error if command closed successfully 2023-06-09 11:24:19 +02:00
docker-credential-helpers vendor: github.com/docker/docker-credential-helpers v0.7.0 2022-09-22 17:27:16 +02:00
go vendor with go mod 2021-12-16 21:16:01 +01:00
go-connections vendor with go mod 2021-12-16 21:16:01 +01:00
go-events vendor with go mod 2021-12-16 21:16:01 +01:00
go-metrics vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
go-units vendor: github.com/docker/go-units v0.5.0 2022-08-31 19:17:10 +02:00