Jun
14
2010
14
2010
XML-RPC “read timeout” after 10 Seconds with Zend_XmlRpc_Client
Recently i had a small Problem with the Service of a Partner we use for a new Project, it worked all together just fine, but just was a little bit slow at times, so i often got a Red Timeout after 10 Seconds.
All you’ve to do here is, of course, increase the timeout by configuring the Zend_Http_Client that is used here, unfortunately you ether have to set it in every method you use like:
$this->_httpClient->setConfig(array('timeout' => '60'));
(if you like me has an own class that extends from Zend_XmlRpc_Client to do your bidding). O
r must supply a full new, configured HTTP Client like:
$httpClient = new Zend_Http_Client;
$httpClient->setConfig(array('timeout' => '60'));
$xmlrpcClient = new Zend_XmlRpc_Client('http://www.foobar.com/service',$httpClient);
(or something along those lines)
Related Posts
Leave a comment
sideblog
- replace your plesk favicon (god damn it!)
- Convert all applicable characters to Numeric entities for use in XML
- Drupal Fatal error: Call to undefined function field_file_load() in /home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc on line 97 with php 5.3
- smashing magazine forum closed - poor call
- disillusioning results for using telekoms developer garden ip location service
tags
2010 ai analytics api app attachment barcamp bash berlin boss compressor conference css drupal filter finder google helper howto image js manual menu minify node options pagepath php plugin regexp search studivz unconference user experience uxcamp view wordpress wp xml x of y yahoo yui zend zend framework Zend_Gdata
An article by Hannes

















![Super Mario Supermarket of the Day: Awesome stock boy is awesome.
[reddit.] Super Mario Supermarket of the Day: Awesome stock boy is awesome.
[reddit.]](http://c0382052.cdn.cloudfiles.rackspacecloud.com/dz3hwo_s.jpg?1281352245)