From 4cc6bed93b6956dc6a69a384f301fa07e8f664b2 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Sun, 13 Feb 2011 10:42:38 -0500 Subject: Fixes issue 131. Handle socket.timeout's that occur during send. --- python3/httplib2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python3') 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) -- cgit v1.2.1