mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
lightning: don't receive too much data, workaround by reading byte by byte
This commit is contained in:
parent
df910ec1de
commit
e184b613e9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue