SSL Timeout error

This commit is contained in:
jorgen 2014-09-15 21:39:11 +02:00
commit 557edb8620
2 changed files with 5 additions and 2 deletions

View file

@ -9,7 +9,7 @@ CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
setup(
name='socketIO-client',
version='0.5.3',
version='0.5.3b',
description='A socket.io client library',
long_description=README + '\n\n' + CHANGES,
license='MIT',

View file

@ -151,7 +151,10 @@ class _WebsocketTransport(_AbstractTransport):
except websocket.WebSocketTimeoutException as e:
raise TimeoutError(e)
except websocket.SSLError as e:
raise ConnectionError(e)
if e.message == "The read operation timed out":
raise TimeoutError(e)
else:
raise ConnectionError(e)
except websocket.WebSocketConnectionClosedException as e:
raise ConnectionError('connection closed (%s)' % e)
except socket.error as e: