SSL Timeout error
This commit is contained in:
parent
2e2496cd4c
commit
557edb8620
2 changed files with 5 additions and 2 deletions
2
setup.py
2
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue