diff options
| author | jason | 2010-01-20 09:16:33 -0700 |
|---|---|---|
| committer | jason | 2010-01-20 09:16:33 -0700 |
| commit | fbc5dadbd6134168eb6516bc2e106e88a2fa3a7f (patch) | |
| tree | fab63d24f4a5d7f69193033cc9aa1266f0f3b96a | |
| parent | 8a055ddb7c7740f26c24c59e29c5b6b93b7c68db (diff) | |
| download | amazons3-py-fbc5dadbd6134168eb6516bc2e106e88a2fa3a7f.tar.gz amazons3-py-fbc5dadbd6134168eb6516bc2e106e88a2fa3a7f.zip | |
Added another try/except to hopefully kill the connection reset errors
| -rw-r--r-- | S3.py | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -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() |