From: Anthony Minessale Date: Wed, 10 Sep 2014 22:29:07 +0000 (+0500) Subject: FS-6761 #resolve X-Git-Tag: v1.4.8~1^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce5d21106e58abf42fd1a6ac38f454e371217c30;p=thirdparty%2Ffreeswitch.git FS-6761 #resolve --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index f3b1a5997c..fede125ffb 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -1603,10 +1603,10 @@ static switch_status_t httapi_sync(client_t *client) switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) client); switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, (void *) client); switch_curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, ua); + switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); if (client->profile->timeout) { switch_curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, client->profile->timeout); - switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); } if (client->profile->ssl_cert_file) { diff --git a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c index 112b370af0..af0a87dd96 100644 --- a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c +++ b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c @@ -237,10 +237,10 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback); switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &config_data); switch_curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "freeswitch-xml/1.0"); + switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); if (binding->timeout) { switch_curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, binding->timeout); - switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); } if (binding->disable100continue) {