From 29dae52847f4e8306827aa88e0072beefab0b50f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 25 Nov 2011 08:55:33 +0000 Subject: [PATCH] Set connect timeout to 10 seconds, search for updates takes too long in case host not answer git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1887 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/81335a3eddfdc3ff1611590450ef271b774a4a1c Author: [CST] Focus Date: 2011-11-25 (Fri, 25 Nov 2011) --- src/system/httptool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/httptool.cpp b/src/system/httptool.cpp index 8be1e838b..de17a1c0c 100644 --- a/src/system/httptool.cpp +++ b/src/system/httptool.cpp @@ -91,6 +91,7 @@ printf("url is %s\n", URL.c_str()); curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent.c_str()); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, (long)1); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 1800); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10); #ifdef DEBUG curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); #endif