1
0

lightning: don't receive too much data, workaround by reading byte by byte

This commit is contained in:
Janus
2018-03-15 17:58:54 +01:00
committed by ThomasV
parent d84eab0418
commit e3ef8d7ec4

View File

@@ -729,7 +729,7 @@ async def readJson(reader):
except ValueError:
if data != b"": print("parse failed, data has", data)
try:
data += await asyncio.wait_for(reader.read(2048), 1)
data += await asyncio.wait_for(reader.read(1), 1)
except TimeoutError:
continue