commit e3ef8d7ec4a0813589fa5be8b2a2d127bd009873
parent d84eab041872d02b1b6ab37d3470a5ac33d52abd
Author: Janus <ysangkok@gmail.com>
Date: Thu, 15 Mar 2018 17:58:54 +0100
lightning: don't receive too much data, workaround by reading byte by byte
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/lightning.py b/lib/lightning.py
@@ -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