Files
containerd/core/remotes/docker
Justin Chadwell 9d7641ff3e copy: improve error detection from closed pipes
If we get io.ErrClosedPipe in pushWriter.Write, there are three possible
scenarios:

- The request has failed, we need to attempt a reset, so we can expect a
  new pipe incoming on pipeC.
- The request has failed, we don't need to attempt a reset, so we can
  expect an incoming error on errC.
- Something else externally has called Close, so we can expect the done
  channel to be closed.

This patch ensures that we block for as long as possible (while still
handling each of the above cases, so we avoid hanging), to make sure
that we properly return an appropriate error message each time.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-02-03 10:18:05 +01:00
..
2024-01-25 22:18:45 -08:00
2024-01-25 22:18:45 -08:00
2024-01-17 09:52:21 -08:00
2024-01-17 09:52:21 -08:00
2024-01-17 09:52:21 -08:00
2024-01-17 09:52:21 -08:00
2024-01-17 09:52:21 -08:00
2024-01-17 09:52:21 -08:00
2024-01-25 22:18:45 -08:00
2024-01-17 09:55:58 -08:00
2024-01-25 22:18:45 -08:00
2024-01-17 09:52:21 -08:00
2024-01-17 09:52:21 -08:00
2024-01-25 22:18:45 -08:00
2024-01-25 22:18:45 -08:00
2024-01-17 09:55:58 -08:00
2024-01-17 09:55:58 -08:00
2024-01-25 22:18:45 -08:00