From 12b4239cab9dcf96b9ffb7ace19442df884940c9 Mon Sep 17 00:00:00 2001 From: clore Date: Sun, 12 May 2024 11:22:47 +0000 Subject: [PATCH] increase timeout to register server --- lib/init_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/init_server.py b/lib/init_server.py index c247f0f..4312d0b 100644 --- a/lib/init_server.py +++ b/lib/init_server.py @@ -49,7 +49,7 @@ async def register_server(data): async with aiohttp.ClientSession() as session: try: - async with session.post(url, data=json_data, headers=headers, timeout=5) as response: + async with session.post(url, data=json_data, headers=headers, timeout=15) as response: if response.status == 200: # Successful response response_data = await response.json()