Jun
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

About the Author:

Hi! I’m Johannes Lauter a 25 year old Web Application Developer based in Berlin ... more

Leave a comment

About me

myself

Hi! I’m Johannes Lauter a 25 year old Web Application Developer based in Berlin ... more.

MyZoo

  • This x That:
Know This: Pew Research Center poll finds 20% of Americans believe Obama is a Muslim — significantly more than did two years ago. Meet the teenage reality show contestant who suggested the infamous site of the “Ground Zero Mosque.” Fifty year
  • Photobucket
  • Amazing Examples of Paper Art | Inspiration
  • Interactive Infographic of the World
  • Real Life Donkey Kong Playing With His Nintendo DS
  • Vintage Tokyo subway manner posters ::: Pink Tentacle
  • Unicorn Being a Jerk : C. W. Moss
  • Choose Your Own Adventure
  • Kuriositas: Hobbiton: Sheep 1, Hobbits 0
  • Test-management2
  • We like those days.
  • Super Mario Supermarket of the Day: Awesome stock boy is awesome.
[reddit.]