Skip to content

Commit

Permalink
retry HTTP 522 errors by default (#1707)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <jason@chainguard.dev>
  • Loading branch information
imjasonh committed May 19, 2023
1 parent 2015ceb commit e61c519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/v1/remote/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ var defaultRetryStatusCodes = []int{
http.StatusBadGateway,
http.StatusServiceUnavailable,
http.StatusGatewayTimeout,
499,
499, // nginx-specific, client closed request
522, // Cloudflare-specific, connection timeout
}

const (
Expand Down

0 comments on commit e61c519

Please sign in to comment.