summaryrefslogtreecommitdiff
path: root/distribution/errors.go
diff options
context:
space:
mode:
authorAntonio Murdaca <runcom@redhat.com>2016-04-23 12:27:45 +0200
committerAntonio Murdaca <runcom@redhat.com>2016-05-04 18:57:55 +0200
commit66fbc0c2a3e813359654f21433abf995b6687265 (patch)
treee20179e644e37964b28842f7da35dfb3f73f0969 /distribution/errors.go
parent305ebfda8bc39b39f018d06a554245872b1ff63a (diff)
downloaddocker-66fbc0c2a3e813359654f21433abf995b6687265.tar.gz
distribution: errors: do not retry on too many requests from registry
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Diffstat (limited to 'distribution/errors.go')
-rw-r--r--distribution/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/distribution/errors.go b/distribution/errors.go
index f7a9c62136..cd8dd590df 100644
--- a/distribution/errors.go
+++ b/distribution/errors.go
@@ -89,7 +89,7 @@ func retryOnError(err error) error {
}
case errcode.Error:
switch v.Code {
- case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied:
+ case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests:
return xfer.DoNotRetry{Err: err}
}
case *url.Error: