Current time: 05-17-2024, 03:40 PM Hello There, Guest! (LoginRegister)


Post Reply 
curl crashes! How do I update curl?
Author Message
zabersoft Offline
Junior Member
*

Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #13
RE: curl crashes! How do I update curl?
Ok after much new experimentation I have come to the conclusion that all this madness is a simple timeout issue. I noticed that it didn't matter WHAT the data was, but rather via. which script I was getting it.

So I timed the scripts - and on the server where it works, then the request can take up to 52 seconds to complete. Whilst on my own server running ispcp it errors out with the http 500 error after around 30 to 33 seconds.

Which would make sense when I look at the max_execution_time in php.ini

However - after having changed to:

php.ini
max_execution_time = 300

httpd.conf
Timeout 300

and setting
curl_setopt($curl_session, CURLOPT_CONNECTTIMEOUT, 300);
curl_setopt($curl_session, CURLOPT_TIMEOUT, 600);

in my request - The script still dies after ~30 seconds

And yes, I have restarted Apache after the changes.

What the heck???

Zaber
04-25-2008 10:27 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: curl crashes! How do I update curl? - zabersoft - 04-25-2008 10:27 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)