From 822280c280219b2457de3161bdff83d8940106c8 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 19 Nov 2022 08:32:44 +0100 Subject: [PATCH] Tweak proxy client (increased timeout, no more HTTP2) --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 2b2ecf2..cef665b 100644 --- a/app/main.py +++ b/app/main.py @@ -1151,7 +1151,10 @@ async def nodeinfo( ) -proxy_client = httpx.AsyncClient(follow_redirects=True, http2=True) +proxy_client = httpx.AsyncClient( + follow_redirects=True, + timeout=httpx.Timeout(timeout=10.0), +) async def _proxy_get(