You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-boto/SOURCES/boto-2.40.0-retry-float.patch

14 lines
728 B

Index: boto-2.40.0/boto/connection.py
===================================================================
--- boto-2.40.0.orig/boto/connection.py
+++ boto-2.40.0/boto/connection.py
@@ -920,7 +920,7 @@ class AWSAuthConnection(object):
while i <= num_retries:
# Use binary exponential backoff to desynchronize client requests.
next_sleep = min(random.random() * (2 ** i),
- boto.config.get('Boto', 'max_retry_delay', 60))
+ boto.config.getfloat('Boto', 'max_retry_delay', 60))
try:
# we now re-sign each request before it is retried
boto.log.debug('Token: %s' % self.provider.security_token)