title: CURLOPT_CONNECTTIMEOUT is not working
body: <p>i am learning about CURLOPT_CONNECTTIMEOUT, i am using a proxy in this test with 25 seconds timeout setting, but it never timed out, i dont know why. here is my simple code</p>
  
  <pre><code>$proxy="124.206.54.251:3128";
  $timeout = 25;
  $url = "http://google.com";
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  curl_setopt($ch, CURLOPT_PROXY, $proxy);
  curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
  curl_setopt($ch, CURLOPT_HEADER, 1);
  curl_setopt($ch, CURLINFO_HEADER_OUT, true); 
  $headerSent = curl_getinfo($ch, CURLINFO_HEADER_OUT ); 
  $returned_msg = curl_exec($ch);
  $error = curl_error($ch);
  $info= curl_getinfo($ch);
  curl_close($ch);
  
  echo "&lt;br&gt;".$returned_msg."&lt;br&gt;".$info['total_time']."&lt;br&gt;".$error; 
  </code></pre>
  
  <p>can someone plz tell why it never timed out? i only want to wait 25 second and it is unable to for any reason such as proxy is dead, then it should timed out.</p>