[Checkins] SVN: zope.publisher/trunk/ remove use of time.sleep in http request supportsRetry
Gary Poster
gary.poster at canonical.com
Fri Aug 21 09:05:21 EDT 2009
Log message for revision 103038:
remove use of time.sleep in http request supportsRetry
Changed:
U zope.publisher/trunk/CHANGES.txt
U zope.publisher/trunk/src/zope/publisher/http.py
-=-
Modified: zope.publisher/trunk/CHANGES.txt
===================================================================
--- zope.publisher/trunk/CHANGES.txt 2009-08-21 12:44:47 UTC (rev 103037)
+++ zope.publisher/trunk/CHANGES.txt 2009-08-21 13:05:21 UTC (rev 103038)
@@ -19,6 +19,8 @@
- Moved dependency on zope.testing from install_requires to tests_require.
+- Removed behavior of doing a time.sleep in the supportsRetry http request.
+
3.8.0 (2009-05-23)
------------------
Modified: zope.publisher/trunk/src/zope/publisher/http.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/http.py 2009-08-21 12:44:47 UTC (rev 103037)
+++ zope.publisher/trunk/src/zope/publisher/http.py 2009-08-21 13:05:21 UTC (rev 103038)
@@ -237,7 +237,6 @@
DEFAULT_PORTS = {'http': '80', 'https': '443'}
-STAGGER_RETRIES = True
class HTTPRequest(BaseRequest):
"""Model HTTP request data.
@@ -437,8 +436,6 @@
'See IPublisherRequest'
count = getattr(self, '_retry_count', 0)
if count < self.retry_max_count:
- if STAGGER_RETRIES:
- time.sleep(random.uniform(0, 2**(count)))
return True
def retry(self):
More information about the Checkins
mailing list