From fbc5dadbd6134168eb6516bc2e106e88a2fa3a7f Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 20 Jan 2010 09:16:33 -0700 Subject: Added another try/except to hopefully kill the connection reset errors --- S3.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/S3.py b/S3.py index b016dd5..0999f27 100644 --- a/S3.py +++ b/S3.py @@ -272,7 +272,12 @@ class AWSAuthConnection: # add auth header self._add_aws_auth_header(final_headers, method, bucket, key, query_args) - connection.request(method, path, data, final_headers) + try: + connection.request(method, path, data, final_headers) + except: + # Try try again + connection.close() + continue try: resp = connection.getresponse() -- cgit v1.2.1