]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5221 --resolve set NOSIGNAL on http_get
authorChris Rienzo <chris.rienzo@grasshopper.com>
Wed, 27 Mar 2013 03:50:29 +0000 (23:50 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Wed, 27 Mar 2013 03:50:29 +0000 (23:50 -0400)
src/mod/applications/mod_http_cache/mod_http_cache.c

index 6dbb55b1fba521179ffa45eed8d60a7d1bfc6f55..897a1b903511b669d8777d52d98a9e88658b5a9e 100644 (file)
@@ -783,6 +783,7 @@ static switch_status_t http_get(url_cache_t *cache, cached_url_t *url, switch_co
        if ((get_data.fd = open(get_data.url->filename, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
                switch_curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1);
                switch_curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 10);
+               switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
                switch_curl_easy_setopt(curl_handle, CURLOPT_URL, get_data.url->url);
                switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, get_file_callback);
                switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &get_data);