Skip to content

Commit

Permalink
Catch more connection exceptions in the asyncio client (Fixes #561)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Nov 28, 2020
1 parent 788cf86 commit 0d8d3a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engineio/asyncio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ async def _connect_websocket(self, url, headers, engineio_path):
websocket_url + self._get_url_timestamp(),
headers=headers)
except (aiohttp.client_exceptions.WSServerHandshakeError,
aiohttp.client_exceptions.ServerConnectionError):
aiohttp.client_exceptions.ServerConnectionError,
aiohttp.client_exceptions.ClientConnectionError):
if upgrade:
self.logger.warning(
'WebSocket upgrade failed: connection error')
Expand Down

0 comments on commit 0d8d3a6

Please sign in to comment.