title: libcurl - Strange timeout after 5 seconds
body: <p>I'm using libcurl to communicate with Twitter and Identi.ca. Everything works perfectly as long as my connection isn't busy. But if I'm downloading a large file, the curl requests timeout after 5 seconds.</p>
  
  <p>I've set the following options on the curl handle:</p>
  
  <pre><code>curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 30);
  curl_easy_setopt(curl, CURLOPT_TIMEOUT, 60);
  curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 15);
  </code></pre>
  
  <p>and they make no difference, <code>curl_easy_perform()</code> always returns after 5 seconds. The <code>CURLINFO_RESPONSE_CODE</code> and <code>CURLINFO_HTTP_CONNECTCODE</code> values are always both zero.</p>
  
  <p>Any ideas? Are there any other timeouts I need to set, or is there any reason why the above don't take effect?</p>
  
  <p>EDIT: The return value of curl_easy_perform is <code>CURLE_OPERATION_TIMEDOUT</code></p>