- turned on a flag for libcurl so timeout issues don't cause segfaults in threads
This commit is contained in:
parent
59c5fd2581
commit
9490e64750
|
@ -125,6 +125,8 @@ std::string SystemFlags::getHTTP(std::string URL,CURL *handle,int timeOut) {
|
|||
}
|
||||
curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT, timeOut);
|
||||
|
||||
curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1);
|
||||
|
||||
/* get contents from the URL */
|
||||
CURLcode result = curl_easy_perform(handle);
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] return code [%d] [%s]\n",__FILE__,__FUNCTION__,__LINE__,result,errbuf);
|
||||
|
|
Loading…
Reference in New Issue
Block a user