Index: rietveld.py |
diff --git a/rietveld.py b/rietveld.py |
index d78c0171d468f789ca5be44b3aea1434cd4dbed8..3dfcd7c387a4e8678b946f1447694792ecef53b0 100644 |
--- a/rietveld.py |
+++ b/rietveld.py |
@@ -409,7 +409,7 @@ class Rietveld(object): |
old_error_exit(msg) |
upload.ErrorExit = trap_http_500 |
- maxtries = 5 |
+ maxtries = 40 |
for retry in xrange(maxtries): |
try: |
logging.debug('%s' % request_path) |
@@ -435,7 +435,7 @@ class Rietveld(object): |
if not 'timed out' in str(e): |
raise |
# If reaching this line, loop again. Uses a small backoff. |
- time.sleep(1+maxtries*2) |
+ time.sleep(10) |
M-A Ruel
2014/06/13 15:42:55
Please replace with:
time.sleep(min(10, 1+maxtrie
Sergiy Byelozyorov
2014/06/13 17:02:16
Done.
|
finally: |
upload.ErrorExit = old_error_exit |