From 085b6ca2ab7beaad3210cef65677ce931b4298b2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 2 May 2020 17:25:30 +0200 Subject: [PATCH] jsonrpc: pass timeout to aiohttp session --- electrum/daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/daemon.py b/electrum/daemon.py index 881f422a9..cc74a8355 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -107,7 +107,7 @@ def request(config: SimpleConfig, endpoint, args=(), timeout=60): loop = asyncio.get_event_loop() async def request_coroutine(): async with aiohttp.ClientSession(auth=auth) as session: - server = AiohttpClient(session, server_url) + server = AiohttpClient(session, server_url, timeout=timeout) f = getattr(server, endpoint) response = await f(*args) return response.data.result