]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
S3 Fuzzer: remove num-retries override
authorKyle Marsh <kyle.marsh@dreamhost.com>
Fri, 19 Aug 2011 22:58:22 +0000 (15:58 -0700)
committerKyle Marsh <kyle.marsh@dreamhost.com>
Mon, 12 Sep 2011 20:02:27 +0000 (13:02 -0700)
Overriding num-retries to 0 sometimes causes boto to fail when the server
doesn't respond fast enough.  Removing the override shouldn't cause any
problems with the fuzzer.

s3tests/fuzz_headers.py

index facfbb0651cdf91b4cf79bf0c41631f87ee4baed..79a8d47bc422c1429fece10c10b5f4cc6992d2e2 100644 (file)
@@ -322,8 +322,6 @@ def _main():
             print>>VERBOSE, "%s: %s" %(h[:50], v[:50])
         print>>VERBOSE, "%s\n" % body[:100]
 
-        response = s3_connection.make_request(method, path, data=body, headers=headers, override_num_retries=0)
-
         print>>DEBUG, 'FULL REQUEST'
         print>>DEBUG, 'Method: %r' %method
         print>>DEBUG, 'Path: %r' %path
@@ -332,6 +330,9 @@ def _main():
             print>>DEBUG, "\t%r: %r" %(h, v)
         print>>DEBUG, 'Body: %r' %body
 
+        #response = s3_connection.make_request(method, path, data=body, headers=headers, override_num_retries=0)
+        response = s3_connection.make_request(method, path, data=body, headers=headers)
+
         print>>VERBOSE, 'Response status code: %d %s' %(response.status, response.reason)
         print>>DEBUG, 'Body:\n%s' %response.read()
         if response.status == 500 or response.status == 503: