Re: SSL error 10054
David Boyd <dboyd <at> fullmoonsoft.com>
2006-06-01 19:04:26 GMT
You should up the time out for php script execution either by directive
or in php.ini.
On Thu, 2006-06-01 at 11:19 -0700, lecblue <at> charter.net wrote:
> I am running PHP from the command line. In my script, I am opening an SSL connection to a third party server. I
send the server an XML request. It processes the request and returns a response. This is built into a loop
because there are thousands of requests I have to make. Most of the time this works ok.
> If the request is big, it may take minutes for the response. If too much time passes, I will get:
> Curl Last Error
> SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
> Curl Last HTTP Code
> In particular it seems there is a time limit of 180 seconds (3 min). The request is processed but I never
receive the response. This is a problem because I need to know if the request worked. I have altered the
script to up every timeout I can find:
> curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 0);
> curl_setopt ($ch, CURLOPT_DNS_CACHE_TIMEOUT, 600);
> curl_setopt ($ch, CURLOPT_TIMEOUT, 600);
> I have also altered the script to ignore the error and go on. (I have to go thru a very manual process to see if
the script fully worked)
> Is there a timeout or keep alive parm I am missing? I have already trimmed the requests to be as small as
possible but I still get some of these errors.