Fuck I can't figure this out for the life of me so maybe someone around here might have a solution cause god knows Google and the PHP docs don't.
Basically I'm running the shit out of cURL and using it to validate hundreds and sometimes thousands of RSS feeds at once but I noticed every now and again it'll hang up on me and it'll crash.
I found that on certain urls the page takes much too long to load and kills the script, now I do have the cURL timeout set and I played around with it lots and I've set up the set_time_limit() function correctly and I've even got things in place to prevent the browser from timing out and I've got things set up with sleep to give a slight cool down period just in case.
Basically I've traced it right down to this on certain URLs I try to grab the site but the site never gives a response, after a certain period of time (20 seconds for this but I would like it to be 10), the script kills itself because it could not get a response.
Now for some odd reason I can't figure out why it kills itself, when using timeouts on cURL if it reaches that timeout limit shouldn't it just stop waiting for a response and continue on executing your script instead of stopping it all together, thats what I would like it to do.
Any suggestions or thoughts on this would be great.
Thanks.
Basically I'm running the shit out of cURL and using it to validate hundreds and sometimes thousands of RSS feeds at once but I noticed every now and again it'll hang up on me and it'll crash.
I found that on certain urls the page takes much too long to load and kills the script, now I do have the cURL timeout set and I played around with it lots and I've set up the set_time_limit() function correctly and I've even got things in place to prevent the browser from timing out and I've got things set up with sleep to give a slight cool down period just in case.
Basically I've traced it right down to this on certain URLs I try to grab the site but the site never gives a response, after a certain period of time (20 seconds for this but I would like it to be 10), the script kills itself because it could not get a response.
Now for some odd reason I can't figure out why it kills itself, when using timeouts on cURL if it reaches that timeout limit shouldn't it just stop waiting for a response and continue on executing your script instead of stopping it all together, thats what I would like it to do.
Any suggestions or thoughts on this would be great.
Thanks.