NYCPHP Meetup

NYPHP.org

[nycphp-talk] php script timeout not working

Daniel Convissor danielc at analysisandsolutions.com
Wed Apr 8 15:22:58 EDT 2009


On Mon, Apr 06, 2009 at 08:29:18PM -0400, Corey H Maass - gelform.com wrote:
> 
> curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
...
> But it doesn't timeout. Any ideas?

FYI...

CURLOPT_CONNECTTIMEOUT just works on the connection attempt.  So once 
you're connected, this option doesn't mean anything.

CURLOPT_TIMEOUT, on the other hand, works on the whole process, I 
believe.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list