mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bugfix endless aiohttp streamreader (#5540)
This commit is contained in:
parent
c972e90580
commit
92858554e6
@ -87,6 +87,8 @@ def async_aiohttp_proxy_stream(hass, request, stream_coro, buffer_size=102400,
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
data = yield from stream.content.read(buffer_size)
|
data = yield from stream.content.read(buffer_size)
|
||||||
|
if not data:
|
||||||
|
break
|
||||||
response.write(data)
|
response.write(data)
|
||||||
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user