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(
|
setup(
|
||||||
name='socketIO-client',
|
name='socketIO-client',
|
||||||
version='0.5.3',
|
version='0.5.3b',
|
||||||
description='A socket.io client library',
|
description='A socket.io client library',
|
||||||
long_description=README + '\n\n' + CHANGES,
|
long_description=README + '\n\n' + CHANGES,
|
||||||
license='MIT',
|
license='MIT',
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,10 @@ class _WebsocketTransport(_AbstractTransport):
|
||||||
except websocket.WebSocketTimeoutException as e:
|
except websocket.WebSocketTimeoutException as e:
|
||||||
raise TimeoutError(e)
|
raise TimeoutError(e)
|
||||||
except websocket.SSLError as 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:
|
except websocket.WebSocketConnectionClosedException as e:
|
||||||
raise ConnectionError('connection closed (%s)' % e)
|
raise ConnectionError('connection closed (%s)' % e)
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue