Add timeouts for cURL request
Reported by George Ornbo | August 10th, 2009 @ 11:20 AM
// 500ms timeout - should be quick enough, tests show around 300ms-450ms
curl_setopt( $c, CURLOPT_CONNECTTIMEOUT_MS, 500 );
// 1 second timeout for the entire transaction
curl_setopt( $c, CURLOPT_TIMEOUT, 1 );
Reported by Remy Sharp
Need a way to fallback to the cache if it exists.
Comments and changes to this ticket
-
George Ornbo August 23rd, 2009 @ 07:18 PM
- State changed from new to resolved
Didn't add CURLOPT_CONNECTTIMEOUT_MS option as this has only been available since PHP 5.2.3
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป