From 0060e1de43e38d6b963327c73b902942663de678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= Date: Fri, 27 Sep 2024 21:02:07 +0900 Subject: [PATCH] Bump hardcoded image pull timeout to 60 seconds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See: https://github.com/containers/image/issues/2585 Signed-off-by: Krzysztof WilczyƄski --- server/image_pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/image_pull.go b/server/image_pull.go index 90c81cd0de98..eea0dc33a7a0 100644 --- a/server/image_pull.go +++ b/server/image_pull.go @@ -273,7 +273,7 @@ func (s *Server) pullImageCandidate(ctx context.Context, sourceCtx *imageTypes.S func consumeImagePullProgress(ctx context.Context, cancel context.CancelFunc, progress <-chan imageTypes.ProgressProperties, remoteCandidateName storage.RegistryImageReference) { // The progress interval is 1s, but we give it a bit more time just in case // that the connection revives. - const timeout = 10 * time.Second + const timeout = 60 * time.Second timer := time.AfterFunc(timeout, func() { log.Warnf(ctx, "Timed out on waiting up to %s for image pull progress updates", timeout) cancel()