From b1f227365a03d621f6c5bf464d8ec8e601ec979f Mon Sep 17 00:00:00 2001 From: "taeyoon0.lee" Date: Thu, 11 Jan 2018 17:11:34 +0900 Subject: [PATCH] [4.0] Removed CURLOPT_FAILONERROR - https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html - This option is not necessary. culr default is false for the option - This option can occur disconnection by http response, not problem Change-Id: I31e29c323154c2d92b481507ce8bb57d5a42d233 --- platform-abstractions/tizen/resource-loader/network/file-download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-abstractions/tizen/resource-loader/network/file-download.cpp b/platform-abstractions/tizen/resource-loader/network/file-download.cpp index 1908597..b276678 100755 --- a/platform-abstractions/tizen/resource-loader/network/file-download.cpp +++ b/platform-abstractions/tizen/resource-loader/network/file-download.cpp @@ -63,7 +63,7 @@ void ConfigureCurlOptions( CURL* curlHandle, const std::string& url ) curl_easy_setopt( curlHandle, CURLOPT_VERBOSE, VERBOSE_MODE ); // CURLOPT_FAILONERROR is not fail-safe especially when authentication is involved ( see manual ) - curl_easy_setopt( curlHandle, CURLOPT_FAILONERROR, CLOSE_CONNECTION_ON_ERROR ); + // Removed CURLOPT_FAILONERROR option curl_easy_setopt( curlHandle, CURLOPT_CONNECTTIMEOUT, CONNECTION_TIMEOUT_SECONDS ); curl_easy_setopt( curlHandle, CURLOPT_HEADER, INCLUDE_HEADER ); curl_easy_setopt( curlHandle, CURLOPT_NOBODY, EXCLUDE_BODY ); -- 2.7.4