containerd/core/content
Justin Chadwell e4f91c2df0 copy: remove max number of ErrResets
If a writer continually asks to be reset then it should always succeed -
it should be the responsibility of the underlying content.Writer to
stop producing ErrReset after some amount of time and to instead return
the underlying issue - which pushWriter already does today, using the
doWithRetries function.

doWithRetries already has a separate cap for retries of 6 requests (5
retries after the original failure), and it seems like this would be
previously overridden by content.Copy's max number of 5 attempts, hiding
the original error.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-02-03 10:20:10 +01:00
..
proxy Switch to new errdefs package 2024-01-25 22:18:45 -08:00
testsuite Switch to new errdefs package 2024-01-25 22:18:45 -08:00
adaptor_test.go Move content to core/content 2024-01-17 09:50:32 -08:00
adaptor.go Move filters to pkg/filters 2024-01-17 09:54:54 -08:00
content.go Move content to core/content 2024-01-17 09:50:32 -08:00
helpers_test.go copy: remove max number of ErrResets 2024-02-03 10:20:10 +01:00
helpers.go copy: remove max number of ErrResets 2024-02-03 10:20:10 +01:00