PHP XML-RPC timeout

If you’re using PHP to do XML-RPC and are getting odd issues with a timeout of around 60 seconds then you may want to look at the PHP.ini setting:

default_socket_timeout

this is by default set to 60 seconds, no-where near enough time for what I was using it for.

Note: I’m using the PEAR XML-RPC classes and these use fsockopen(), the timeout there is 0, but that only applies to making the connection!

PHP and MySQL Web Development, 3rd Edition

hth


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *