From 84238204a7cb72ada10ae6eccd288d07d7306c2b Mon Sep 17 00:00:00 2001 From: Dror Guy Date: Sun, 2 Aug 2020 11:22:33 +0300 Subject: [PATCH 1/2] set CURLOPT_NOSIGNAL to 1 --- src/http/libcurl_http_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/libcurl_http_client.cpp b/src/http/libcurl_http_client.cpp index f03c967..9bcaa0c 100644 --- a/src/http/libcurl_http_client.cpp +++ b/src/http/libcurl_http_client.cpp @@ -9,6 +9,7 @@ namespace azure { namespace storage_lite { CurlEasyRequest::CurlEasyRequest(std::shared_ptr client, CURL *h) : m_client(client), m_curl(h), m_slist(NULL) { + check_code(curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1L)); check_code(curl_easy_setopt(m_curl, CURLOPT_HEADERFUNCTION, header_callback)); check_code(curl_easy_setopt(m_curl, CURLOPT_HEADERDATA, this)); } From c7e38c52aaef783d43387b4024da972352dcebe5 Mon Sep 17 00:00:00 2001 From: Dror Guy Date: Sun, 2 Aug 2020 20:41:02 +0300 Subject: [PATCH 2/2] fix --- src/http/libcurl_http_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/libcurl_http_client.cpp b/src/http/libcurl_http_client.cpp index 9bcaa0c..c0ff0a6 100644 --- a/src/http/libcurl_http_client.cpp +++ b/src/http/libcurl_http_client.cpp @@ -9,7 +9,7 @@ namespace azure { namespace storage_lite { CurlEasyRequest::CurlEasyRequest(std::shared_ptr client, CURL *h) : m_client(client), m_curl(h), m_slist(NULL) { - check_code(curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1L)); + check_code(curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, 1L)); check_code(curl_easy_setopt(m_curl, CURLOPT_HEADERFUNCTION, header_callback)); check_code(curl_easy_setopt(m_curl, CURLOPT_HEADERDATA, this)); }