👷 utils: increase connection check timeout

This commit is contained in:
Vladislav Nepogodin 2024-07-25 01:37:34 +04:00
parent 30a810138b
commit 10ff2eeb73
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -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<std::int32_t>(r.status_code)) || cpr::status::is_redirect(static_cast<std::int32_t>(r.status_code));
#else