diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-08-07 20:10:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-08-07 20:10:08 +0100 |
commit | ee06bfb78c353644f211e96ec7364bfa1262b9f2 (patch) | |
tree | b11b3e67a33456506ce3fbe9cefc579d567b6d90 | |
parent | Switch to IceTray loggers (diff) | |
download | gentoobrowse-api-ee06bfb78c353644f211e96ec7364bfa1262b9f2.tar.bz2 gentoobrowse-api-ee06bfb78c353644f211e96ec7364bfa1262b9f2.tar.xz gentoobrowse-api-ee06bfb78c353644f211e96ec7364bfa1262b9f2.zip |
Set curl timeout on bug download
-rw-r--r-- | gentoobrowse-api/service/maintenanceBugs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gentoobrowse-api/service/maintenanceBugs.cpp b/gentoobrowse-api/service/maintenanceBugs.cpp index 73b5b63..9bb8a56 100644 --- a/gentoobrowse-api/service/maintenanceBugs.cpp +++ b/gentoobrowse-api/service/maintenanceBugs.cpp @@ -94,8 +94,9 @@ namespace Gentoo { "buglist-UNCONFIRMED.html", "buglist-IN_PROGRESS.html" }) { log->messagectf<UpdatingBugUrl>(IceTray::Logging::LogLevel::DEBUG, bl); - AdHoc::Net::CurlStreamSource css((root / bl).string()); + AdHoc::Net::CurlStreamSource css(root / bl); css.setopt(CURLOPT_ENCODING, "deflate, gzip"); + css.setopt(CURLOPT_TIMEOUT, 20L); AdHoc::Net::CurlStream cs(css); blp.parse_stream(cs); } |