set CURLOPT_TIMEOUT 120 seconds 53/199253/1
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 12 Mar 2018 05:04:17 +0000 (14:04 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Fri, 8 Feb 2019 01:22:17 +0000 (10:22 +0900)
Change-Id: I1488f6bf25af831c65ef4c184ddd0228e4db2fbd

dali/internal/imaging/common/file-download.cpp

index b4d3f4f..60faf2c 100755 (executable)
@@ -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 );