aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2010-01-20 09:16:33 -0700
committerjason2010-01-20 09:16:33 -0700
commitfbc5dadbd6134168eb6516bc2e106e88a2fa3a7f (patch)
treefab63d24f4a5d7f69193033cc9aa1266f0f3b96a
parent8a055ddb7c7740f26c24c59e29c5b6b93b7c68db (diff)
downloadamazons3-py-fbc5dadbd6134168eb6516bc2e106e88a2fa3a7f.tar.gz
amazons3-py-fbc5dadbd6134168eb6516bc2e106e88a2fa3a7f.zip
Added another try/except to hopefully kill the connection reset errors
-rw-r--r--S3.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/S3.py b/S3.py
index b016dd5..0999f27 100644
--- a/S3.py
+++ b/S3.py
@@ -272,7 +272,12 @@ class AWSAuthConnection:
272 # add auth header 272 # add auth header
273 self._add_aws_auth_header(final_headers, method, bucket, key, query_args) 273 self._add_aws_auth_header(final_headers, method, bucket, key, query_args)
274 274
275 connection.request(method, path, data, final_headers) 275 try:
276 connection.request(method, path, data, final_headers)
277 except:
278 # Try try again
279 connection.close()
280 continue
276 281
277 try: 282 try:
278 resp = connection.getresponse() 283 resp = connection.getresponse()