From 1f5a1427a892da51c83def8dcbc4d43ac6f2131c Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Mon, 12 Mar 2018 14:04:17 +0900 Subject: [PATCH] set CURLOPT_TIMEOUT 120 seconds Change-Id: I1488f6bf25af831c65ef4c184ddd0228e4db2fbd --- dali/internal/imaging/common/file-download.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dali/internal/imaging/common/file-download.cpp b/dali/internal/imaging/common/file-download.cpp index b4d3f4f..60faf2c 100755 --- a/dali/internal/imaging/common/file-download.cpp +++ b/dali/internal/imaging/common/file-download.cpp @@ -43,6 +43,7 @@ namespace // unnamed namespace { const int CONNECTION_TIMEOUT_SECONDS( 30L ); +const int TIMEOUT_SECONDS( 120L ); const long VERBOSE_MODE = 0L; // 0 == off, 1 == on const long CLOSE_CONNECTION_ON_ERROR = 1L; // 0 == off, 1 == on const long EXCLUDE_HEADER = 0L; @@ -64,6 +65,7 @@ void ConfigureCurlOptions( CURL* curlHandle, const std::string& url ) // CURLOPT_FAILONERROR is not fail-safe especially when authentication is involved ( see manual ) // Removed CURLOPT_FAILONERROR option curl_easy_setopt( curlHandle, CURLOPT_CONNECTTIMEOUT, CONNECTION_TIMEOUT_SECONDS ); + curl_easy_setopt( curlHandle, CURLOPT_TIMEOUT, TIMEOUT_SECONDS ); curl_easy_setopt( curlHandle, CURLOPT_HEADER, INCLUDE_HEADER ); curl_easy_setopt( curlHandle, CURLOPT_NOBODY, EXCLUDE_BODY ); -- 2.7.4