tlightning: don't receive too much data, workaround by reading byte by byte - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e3ef8d7ec4a0813589fa5be8b2a2d127bd009873 DIR parent d84eab041872d02b1b6ab37d3470a5ac33d52abd HTML 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: M lib/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/lightning.py b/lib/lightning.py t@@ -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