Question

I'm using SoapClient with my PHP page to gather data from a third party. I have increased my max_execution_time to 50 seconds and I have stopped getting those errors in the logs. However, now I get the Service Unavailable error and nothing in the logs after about 32 seconds.

I've timed the soap calls to anywhere from 2 seconds to 10 seconds each and my script may make 4 or 5 of these calls per execution. If I drop one or two of the calls it executes just under 30 seconds without error. This makes me think there's something else in my server config that's dropping the connection. To see if it was the third party server I kept the same number of API calls that properly executed within 30 seconds and added a sleep(10) after each execution and it failed at 31-32 seconds.

Was it helpful?

Solution

Turns out it was due to Rackspace's load balancer. It was defaulted to 30 seconds no matter what my server was set to beneath it. In the event anyone ever needs to use the API, here's the article: https://community.rackspace.com/products/f/25/t/89

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top