mirror of https://github.com/docker/docs.git
Context cancellations were previously causing `Prepare` to fail completely on re-entrant calls. To prevent this, we filtered out cancels and deadline errors. While this allowed the service to proceed without errors, it had the possibility of interrupting long pulls, causing the pull to happen twice. This PR forks the context of the pull to match the lifetime of `Controller`, ensuring that for each task, the pull is only performed once. It also ensures that multiple calls to `Prepare` are re-entrant, ensuring that the pull resumes from its original position. Signed-off-by: Stephen J Day <stephen.day@docker.com> (cherry picked from commit d8d71ad5b94d44a2778f2d8989424259cac94e9b) Signed-off-by: Tibor Vass <tibor@docker.com> |
||
|---|---|---|
| .. | ||
| container | ||
| backend.go | ||