]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6761 #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Sep 2014 22:29:07 +0000 (03:29 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Sep 2014 22:29:07 +0000 (03:29 +0500)
src/mod/applications/mod_httapi/mod_httapi.c
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

index f3b1a5997caf390c6fc7b9cc32c7d761e6e84733..fede125ffbbcc9c0098ec4571f5cf22bda98889e 100644 (file)
@@ -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) {
index 112b370af053ec60abc4a0d40fe7f643ee4bcb73..af0a87dd965c87461b27f21bd70b787b820c1c19 100644 (file)
@@ -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) {