From: Eunki, Hong Date: Thu, 29 Sep 2022 09:08:31 +0000 (+0900) Subject: Set CURLOPT_NOSIGNAL as 1L default X-Git-Tag: dali_2.1.43~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efc2cd5c6b9a37b77129502eb0495fd497c96e54;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Set CURLOPT_NOSIGNAL as 1L default To guard multi-thread case more safely, disconnect some non-thread safely signal for curl lib. Change-Id: I091795df822df532ffb675d146ce6eeb25f85c77 Signed-off-by: Eunki, Hong --- diff --git a/dali/internal/imaging/common/file-download.cpp b/dali/internal/imaging/common/file-download.cpp index f566757..6b50a47 100644 --- a/dali/internal/imaging/common/file-download.cpp +++ b/dali/internal/imaging/common/file-download.cpp @@ -62,6 +62,7 @@ void ConfigureCurlOptions(CURL* curlHandle, const std::string& url) curl_easy_setopt(curlHandle, CURLOPT_TIMEOUT, TIMEOUT_SECONDS); curl_easy_setopt(curlHandle, CURLOPT_HEADER, INCLUDE_HEADER); curl_easy_setopt(curlHandle, CURLOPT_NOBODY, EXCLUDE_BODY); + curl_easy_setopt(curlHandle, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt(curlHandle, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curlHandle, CURLOPT_MAXREDIRS, 5L);