<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -298,20 +298,23 @@ static VALUE ruby_curl_multi_perform(VALUE self) {
       raise_curl_multi_error_exception(mcode);
     }
 
+#ifdef HAVE_CURL_MULTI_TIMEOUT 
     /* get the curl suggested time out */
     mcode = curl_multi_timeout(rbcm-&gt;handle, &amp;timeout);
     if (mcode != CURLM_OK) {
       raise_curl_multi_error_exception(mcode);
     }
+#else
+    /* libcurl doesn't have a timeout method defined... make a wild guess */
+    timeout = 1; /* wait a second */
+#endif
 
     if (timeout == 0) { /* no delay */
       rb_curl_multi_run( self, rbcm-&gt;handle, &amp;(rbcm-&gt;running) );
       continue;
     }
     else if (timeout == -1) {
-      timeout = 1; /* You must not wait too long 
-                     (more than a few seconds perhaps) before 
-                     you call curl_multi_perform() again */
+      timeout = 1; /* wait a second */
     }
 
     if (rb_block_given_p()) {</diff>
      <filename>ext/curb_multi.c</filename>
    </modified>
    <modified>
      <diff>@@ -81,6 +81,9 @@ have_constant &quot;curlmopt_maxconnects&quot;
 # centos 4.5 build of libcurl
 have_constant &quot;curlm_bad_socket&quot;
 have_constant &quot;curlm_unknown_option&quot;
+have_func(&quot;curl_multi_timeout&quot;)
+have_func(&quot;curl_multi_fdset&quot;)
+have_func(&quot;curl_multi_perform&quot;)
 
 if try_compile('int main() { return 0; }','-Wall')
   $CFLAGS &lt;&lt; ' -Wall'</diff>
      <filename>ext/extconf.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f3c88353403022bd5d5a2755f0a0464b66a946f3</id>
    </parent>
  </parents>
  <author>
    <name>Todd A. Fisher</name>
    <login></login>
    <email>taf2@web3.anerian.com</email>
  </author>
  <url>http://github.com/taf2/curb/commit/9833f005cf309afaa33316372b34519d6988c8c2</url>
  <id>9833f005cf309afaa33316372b34519d6988c8c2</id>
  <committed-date>2009-06-09T12:10:05-07:00</committed-date>
  <authored-date>2009-06-09T12:10:05-07:00</authored-date>
  <message>more checks for cent os 4.5 versions of libcurl prior to 7.15</message>
  <tree>6f7b98d86e4cbdf17b5b6389dda5c2dd95ea839a</tree>
  <committer>
    <name>Todd A. Fisher</name>
    <login></login>
    <email>taf2@web3.anerian.com</email>
  </committer>
</commit>
