Catch connection reset error (#65027)

This commit is contained in:
Paulus Schoutsen 2022-01-27 02:02:27 -08:00 committed by GitHub
parent fa62e7e142
commit 3daaed1056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,11 @@ class HassIOIngress(HomeAssistantView):
async for data in result.content.iter_chunked(4096):
await response.write(data)
except (aiohttp.ClientError, aiohttp.ClientPayloadError) as err:
except (
aiohttp.ClientError,
aiohttp.ClientPayloadError,
ConnectionResetError,
) as err:
_LOGGER.debug("Stream error %s / %s: %s", token, path, err)
return response