summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-03-23 22:24:45 +0100
committerspycrab <spycrab@users.noreply.github.com>2018-03-23 22:25:38 +0100
commitf3e6f0f2d410cfd7502fa1575b83c9907e9fb692 (patch)
tree54dbcafafa60f277380d9bc8701a91ac89348ed2 /Source/Core
parent22d851d930771f901c6cc1772170b6dd203b039e (diff)
Updater: Increase request timeout to 30s
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Updater/Main.cpp3
1 files changed, 2 insertions, 1 deletions
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 <OptionParser.h>
#include <algorithm>
#include <array>
+#include <chrono>
#include <cstdio>
#include <ed25519/ed25519.h>
#include <mbedtls/base64.h>
@@ -471,7 +472,7 @@ Manifest::Hash ComputeHash(const std::string& contents)
bool DownloadContent(const std::vector<Manifest::Hash>& 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());