Browse Source
lightning: don't receive too much data, workaround by reading byte by byte
regtest_lnd
Janus
7 years ago
committed by
SomberNight
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|