From 61bd9261bfa658d724bc1fc77e3cb19bef8971c7 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 1 Nov 2017 06:58:04 +0100 Subject: [PATCH] Use small timeouts with cURL --- src/blupi.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blupi.cxx b/src/blupi.cxx index dd38c9a..f7bf031 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -510,6 +510,8 @@ CheckForUpdates () curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt (curl, CURLOPT_FAILONERROR, 1); curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt (curl, CURLOPT_TIMEOUT, 20); + curl_easy_setopt (curl, CURLOPT_CONNECTTIMEOUT, 5); curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, updateCallback);