libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [4/4] libcloud git commit: Add some comments.
Date Sun, 10 Jan 2016 15:49:38 GMT
Add some comments.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c626d982
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c626d982
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c626d982

Branch: refs/heads/trunk
Commit: c626d9820cdfb51e62b36f298b8fbf1aed307ce2
Parents: 0315d4e
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sun Jan 10 16:48:49 2016 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sun Jan 10 16:48:49 2016 +0100

----------------------------------------------------------------------
 libcloud/utils/misc.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c626d982/libcloud/utils/misc.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/misc.py b/libcloud/utils/misc.py
index 0162511..01acba1 100644
--- a/libcloud/utils/misc.py
+++ b/libcloud/utils/misc.py
@@ -51,9 +51,10 @@ class TransientSSLError(ssl.SSLError):
     pass
 
 
-DEFAULT_TIMEOUT = 30
-DEFAULT_DELAY = 1
-DEFAULT_BACKOFF = 1
+# Constants used by the ``retry`` decorator
+DEFAULT_TIMEOUT = 30  # default retry timeout
+DEFAULT_DELAY = 1  # default sleep delay used in each iterator
+DEFAULT_BACKOFF = 1  # retry backup multiplier
 RETRY_EXCEPTIONS = (RateLimitReachedError, socket.error, socket.gaierror,
                     httplib.NotConnected, httplib.ImproperConnectionState,
                     TransientSSLError)


Mime
View raw message