From f3e6f0f2d410cfd7502fa1575b83c9907e9fb692 Mon Sep 17 00:00:00 2001 From: spycrab Date: Fri, 23 Mar 2018 22:24:45 +0100 Subject: [PATCH] Updater: Increase request timeout to 30s --- Source/Core/Updater/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Updater/Main.cpp b/Source/Core/Updater/Main.cpp index 28ca2b0c7f..947661c1f4 100644 --- a/Source/Core/Updater/Main.cpp +++ b/Source/Core/Updater/Main.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -471,7 +472,7 @@ Manifest::Hash ComputeHash(const std::string& contents) bool DownloadContent(const std::vector& to_download, const std::string& content_base_url, const std::string& temp_path) { - Common::HttpRequest req; + Common::HttpRequest req(std::chrono::seconds(30)); for (const auto& h : to_download) { std::string hash_filename = HexEncode(h.data(), h.size());