Skip to content

Commit

Permalink
Avoid libcurl signal handler (Closes #210)
Browse files Browse the repository at this point in the history
  • Loading branch information
cinemast committed Jul 6, 2018
1 parent c22eb55 commit fc7d41a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connector/curl/curlclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ string CurlClient::SendRPCMessage(const string &message) {
headers = curl_slist_append(headers, (header.first + ": " + header.second).c_str());
}

curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_URL, this->url.c_str());
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, timeout);
Expand Down

0 comments on commit fc7d41a

Please sign in to comment.