Catch ConnectionResetError (#60987)

This commit is contained in:
david reid 2021-12-05 17:50:15 +00:00 committed by GitHub
parent dc5377485b
commit 95f0098593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,3 +255,5 @@ async def _websocket_forward(ws_from, ws_to):
await ws_to.close(code=ws_to.close_code, message=msg.extra)
except RuntimeError:
_LOGGER.debug("Ingress Websocket runtime error")
except ConnectionResetError:
_LOGGER.debug("Ingress Websocket Connection Reset")