From d65e92e323b1ee95d411f362a702c6e84b81f18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 15 Sep 2020 20:58:35 +0200 Subject: [PATCH] decrease timeout from 5 to 3s on services --- sdbs_infra/dashboard/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdbs_infra/dashboard/views.py b/sdbs_infra/dashboard/views.py index a8ed929..2c2157f 100644 --- a/sdbs_infra/dashboard/views.py +++ b/sdbs_infra/dashboard/views.py @@ -71,7 +71,7 @@ class IndexView(TemplateView): async def process_services(self, services): result = [] - session = aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=5, sock_connect=1)) + session = aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=3, sock_connect=1)) for service in services: index_status, index_text = None, None