Skip to content

Commit bf1da96

Browse files
authored
fix: 20 sec timeout for write to disc too short
20 sec stall on an platter old hdd is not unexpected. Nor is 20s write on a low-tier cloud environment drive unexpected. 300s should however be enough to tell the difference between crappy hardware and actual failure. fixes moby#4327 Signed-off-by: Dennis Haney <[email protected]>
1 parent eb51e91 commit bf1da96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solver/llbsolver/solver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (s *Solver) recordBuildHistory(ctx context.Context, id string, req frontend
198198
}
199199

200200
ctx, cancel := context.WithCancelCause(context.Background())
201-
ctx, _ = context.WithTimeoutCause(ctx, 20*time.Second, errors.WithStack(context.DeadlineExceeded))
201+
ctx, _ = context.WithTimeoutCause(ctx, 300*time.Second, errors.WithStack(context.DeadlineExceeded))
202202
defer cancel(errors.WithStack(context.Canceled))
203203

204204
var mu sync.Mutex

0 commit comments

Comments
 (0)