Skip to content

Commit

Permalink
👷 utils: increase connection check timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jul 24, 2024
1 parent 30a8101 commit 10ff2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10ff2ee

Please sign in to comment.