add 505 and 403 to retry status codes due to amazon s3 random fails while uploading images

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40458
This commit is contained in:
Daniel Grana 2008-12-02 13:01:49 +00:00
parent 50379ee21e
commit c22223beb7
1 changed files with 3 additions and 0 deletions

View File

@ -28,3 +28,6 @@ EXTENSIONS = []
# contrib.middleware.retry.RetryMiddleware default settings
RETRY_TIMES = 3
RETRY_HTTP_CODES = ['500', '503', '504', '400', '408', '200']
# amazon s3 images backend sometimes fails to authenticate or validate http protocol
RETRY_HTTP_CODES = RETRY_HTTP_CODES + ['505', '403']