Set CURLOPT_NOSIGNAL as 1L default 75/282275/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 29 Sep 2022 09:08:31 +0000 (18:08 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 29 Sep 2022 09:08:56 +0000 (18:08 +0900)
To guard multi-thread case more safely,
disconnect some non-thread safely signal for curl lib.

Change-Id: I091795df822df532ffb675d146ce6eeb25f85c77
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/imaging/common/file-download.cpp

index f566757..6b50a47 100644 (file)
@@ -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);