Skip to content

Commit

Permalink
Bump hardcoded image pull timeout to 60 seconds
Browse files Browse the repository at this point in the history
See: containers/image#2585

Signed-off-by: Krzysztof Wilczyński <[email protected]>
  • Loading branch information
kwilczynski committed Sep 27, 2024
1 parent 738be3c commit 0060e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/image_pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0060e1d

Please sign in to comment.