diff options
| author | Joe Gregorio <jcgregorio@google.com> | 2011-02-13 10:42:38 -0500 |
|---|---|---|
| committer | Joe Gregorio <jcgregorio@google.com> | 2011-02-13 10:42:38 -0500 |
| commit | 4cc6bed93b6956dc6a69a384f301fa07e8f664b2 (patch) | |
| tree | 0a21671543be14e48ba8ac4b9e58fc5019f6c1d1 /python3/httplib2 | |
| parent | b6c90c4cd431e213b7425f41b7c51f7dead51294 (diff) | |
| download | httplib2-4cc6bed93b6956dc6a69a384f301fa07e8f664b2.tar.gz | |
Fixes issue 131. Handle socket.timeout's that occur during send.
Diffstat (limited to 'python3/httplib2')
| -rw-r--r-- | python3/httplib2/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python3/httplib2/__init__.py b/python3/httplib2/__init__.py index b25b9c8..07e05b4 100644 --- a/python3/httplib2/__init__.py +++ b/python3/httplib2/__init__.py @@ -848,6 +848,8 @@ the same interface as FileCache.""" for i in range(2): try: conn.request(method, request_uri, body, headers) + except socket.timeout: + raise except socket.gaierror: conn.close() raise ServerNotFoundError("Unable to find the server at %s" % conn.host) |
