From efc2cd5c6b9a37b77129502eb0495fd497c96e54 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Thu, 29 Sep 2022 18:08:31 +0900 Subject: [PATCH] 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 --- dali/internal/imaging/common/file-download.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4