function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
upNcommNupNcommN 

PHP Curl timeouts

hey,
we are getting regular timeouts on the PHP Curl libraries. I've extended the timeout from 4s to 10s but there are still problems. This mostly occurrs at close-of-business. Any solutions beyond further extending the timeout that would stop this from crippling our web portal? The site is hosted in Cedir Falls, IA, I really don't think there could be need for more than 10s round trip from IA to SFDC servers.

Adrian Fitzpatrick
Verve Software
adamgadamg
The timeout isn't just to make a connection, its to execute the request and wait for sforce to respond. We default that value to 60 seconds in the Java sample, and recommend you do the same..
sgeninsgenin
Hello Adam,

could you explain me how you set up the timeout in PHP?
I tried to set $client.Timeout(xxxx), but it doesn't make any difference.

Thanks
Stéphane