Hi,
We do payment processing via Paypal/verisign and since Friday their service has been having near 99% problem
Resulting in payments passed to them for processing not being processed, that is they send no response back after one passes to them the payment information for processing resulting in our server hanging. So what I need to do is to close the connection to them if they fail to respond within certain amount of time, so that at least our server will not hag waiting for them to reply.
So my question is: how do I close a Curl connection that does not answer after a certain amount of time?
We have a transaction communication like this:
$fp = fsockopen ('ssl:/pp.com', 443, $errno, $errstr, 120);
fputs ($fp, $req);
while (!feof($fp)) {
$res .= fgets($fp, 100);
}
$result1 = getValue($res, 'RESULT=');
fclose($fp);
How do I test to see that the server pp.com has not responded within say 30 seconds and thus close fclose($fp); based on this lack of response?
Regards,
P.S., Do not do your payment processing via Paypal/Verisign, since they are totally unprofessional with their service since as noted above their service in regard to this critical issue of payment processing has been malfunctioning since Friday/Mar/18, resulting in countless lost sales
And worst head aches