From 121c6053324293306458de7ae8c1d6c18a4ce76d Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 6 Dec 2021 16:12:47 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/monitor/executors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/monitor/executors.py b/spug_api/apps/monitor/executors.py index 057c45d..7e95689 100644 --- a/spug_api/apps/monitor/executors.py +++ b/spug_api/apps/monitor/executors.py @@ -20,7 +20,7 @@ regex = re.compile(r'Failed to establish a new connection: (.*)\'\)+') def site_check(url, limit): try: - res = requests.get(url, timeout=10) + res = requests.get(url, timeout=30) if limit: duration = int(res.elapsed.total_seconds() * 1000) if duration > int(limit):