Skip to content

Commit 1120fa4

Browse files
Thomas Villejpx
Thomas Ville
authored andcommitted
Merge branch '179-a-crash-may-be-caused-by-libcurl-when-executing-a-request-from-the-http-worker' into 'master'
Resolve "A crash may be caused by libcurl when executing a request from the HTTP worker" Closes #179 See merge request aerys/smartshape-engine!176 (cherry picked from commit f069709) af82e75 Set the libcurl option CURLOPT_NOSIGNAL on every request made to fix #179.
1 parent e5a0d94 commit 1120fa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/http-worker/src/minko/net/HTTPRequest.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ createCurl(const std::string& url,
147147
if (!verifyPeer)
148148
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
149149

150+
// https://git.aerys.in/aerys/smartshape-engine/issues/179
151+
// https://stackoverflow.com/a/10755612/7512344
152+
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
153+
150154
// POST method
151155
if (!postFields.empty())
152156
{

0 commit comments

Comments
 (0)