mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-30 05:56:12 +00:00
FS-6761 #resolve
This commit is contained in:
parent
30283b7f6b
commit
ce5d21106e
@ -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_WRITEDATA, (void *) client);
|
||||||
switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, (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_USERAGENT, ua);
|
||||||
|
switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
|
||||||
|
|
||||||
if (client->profile->timeout) {
|
if (client->profile->timeout) {
|
||||||
switch_curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 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) {
|
if (client->profile->ssl_cert_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_WRITEFUNCTION, file_callback);
|
||||||
switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &config_data);
|
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_USERAGENT, "freeswitch-xml/1.0");
|
||||||
|
switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
|
||||||
|
|
||||||
if (binding->timeout) {
|
if (binding->timeout) {
|
||||||
switch_curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, binding->timeout);
|
switch_curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, binding->timeout);
|
||||||
switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (binding->disable100continue) {
|
if (binding->disable100continue) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user