Revision
17002
Author
mikej
Date
2010-03-16 08:45:06 -0500 (Tue, 16 Mar 2010)

Log Message

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

Modified Paths

Diff

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);
 		}