提交 446aab08 authored 作者: Michael Jerris's avatar Michael Jerris

try to do something like what the user asked for if we don't support ms timeout

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17002 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 fadfa4bf
...@@ -245,7 +245,7 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con ...@@ -245,7 +245,7 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
#ifdef CURLOPT_TIMEOUT_MS #ifdef CURLOPT_TIMEOUT_MS
curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT_MS, binding->timeout_ms); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT_MS, binding->timeout_ms);
#else #else
curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, binding->timeout_ms); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, (binding->timeout_ms / 1000) ? (binding->timeout_ms / 1000) : 1);
#endif #endif
curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论