From 9490e6475044933dd5194ed4a1ec2d1905683ca4 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 15 Oct 2010 17:49:18 +0000 Subject: [PATCH] - turned on a flag for libcurl so timeout issues don't cause segfaults in threads --- source/shared_lib/sources/util/util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/shared_lib/sources/util/util.cpp b/source/shared_lib/sources/util/util.cpp index 48d65529..cafd06cf 100644 --- a/source/shared_lib/sources/util/util.cpp +++ b/source/shared_lib/sources/util/util.cpp @@ -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);