kopia lustrzana https://github.com/ukhas/habitat-cpp-connector
Disable CURL Signals
rodzic
ab15cf16f9
commit
8dacdc32cd
|
@ -353,6 +353,7 @@ string cURL::perform(const string &url)
|
||||||
{
|
{
|
||||||
string response;
|
string response;
|
||||||
|
|
||||||
|
setopt(CURLOPT_NOSIGNAL, 1);
|
||||||
setopt(CURLOPT_URL, url.c_str());
|
setopt(CURLOPT_URL, url.c_str());
|
||||||
setopt(CURLOPT_WRITEFUNCTION, write_func);
|
setopt(CURLOPT_WRITEFUNCTION, write_func);
|
||||||
setopt(CURLOPT_WRITEDATA, &response);
|
setopt(CURLOPT_WRITEDATA, &response);
|
||||||
|
|
Ładowanie…
Reference in New Issue