diff --git a/engine/commands/cortex_upd_cmd.h b/engine/commands/cortex_upd_cmd.h index 4d2899a36..501696956 100644 --- a/engine/commands/cortex_upd_cmd.h +++ b/engine/commands/cortex_upd_cmd.h @@ -19,6 +19,7 @@ constexpr const auto kNightlyFileName = "cortex-nightly.tar.gz"; const std::string kCortexBinary = "cortex"; constexpr const auto kBetaComp = "-rc"; constexpr const auto kReleaseFormat = ".tar.gz"; +constexpr const auto kTimeoutCheckUpdate = std::chrono::milliseconds(1000); inline std::string GetRole() { #if defined(_WIN32) @@ -68,6 +69,7 @@ inline void CheckNewUpdate() { CTL_INF("Engine release path: " << host_name << release_path); httplib::Client cli(host_name); + cli.set_connection_timeout(kTimeoutCheckUpdate); if (auto res = cli.Get(release_path)) { if (res->status == httplib::StatusCode::OK_200) { try {