From ee06bfb78c353644f211e96ec7364bfa1262b9f2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 7 Aug 2019 20:10:08 +0100 Subject: Set curl timeout on bug download --- gentoobrowse-api/service/maintenanceBugs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(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); } -- cgit v1.2.3