Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (17001 => 17002)
--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c 2010-03-16 09:28:53 UTC (rev 17001)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c 2010-03-16 13:45:06 UTC (rev 17002)
@@ -245,7 +245,7 @@
#ifdef CURLOPT_TIMEOUT_MS
curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT_MS, binding->timeout_ms);
#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
curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
}