1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 04:19:03 +00:00

Fix ConnectionResetError during ingress proxing (#6137)

Under certain (timing) conditions ConnectionResetError can be raised
when the client closes the connection while we are still writing to it.
Make sure to handle the appropriate exceptions to avoid flooding the
logs with stack traces.
This commit is contained in:
Stefan Agner
2025-08-28 10:15:32 +02:00
committed by GitHub
parent b69546f2c1
commit 00a78f372b

View File

@@ -286,6 +286,7 @@ class APIIngress(CoreSysAttributes):
aiohttp.ClientError,
aiohttp.ClientPayloadError,
ConnectionResetError,
ConnectionError,
) as err:
_LOGGER.error("Stream error with %s: %s", url, err)