From 10ff2eeb7314883ce13aae317faeb6ae255cbac8 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Thu, 25 Jul 2024 01:37:34 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20utils:=20increase=20connection?= =?UTF-8?q?=20check=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index 93ea7dc..0883fc2 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -102,7 +102,7 @@ bool is_connected() noexcept { #ifdef NDEVENV /* clang-format off */ auto r = cpr::Get(cpr::Url{"https://cachyos.org"}, - cpr::Timeout{1000}); + cpr::Timeout{15000}); // 15s /* clang-format on */ return cpr::status::is_success(static_cast(r.status_code)) || cpr::status::is_redirect(static_cast(r.status_code)); #else