[planetblupi] 53/61: Use small timeouts with cURL
Didier Raboud
odyx at moszumanska.debian.org
Thu Nov 2 19:25:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository planetblupi.
commit 61bd9261bfa658d724bc1fc77e3cb19bef8971c7
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date: Wed Nov 1 06:58:04 2017 +0100
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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/planetblupi.git
More information about the Pkg-games-commits
mailing list