title: XMLRPC Zend_Http_Client_Adapter_Exception' with message 'Read timed out after 10 seconds
body: <p>I've Googled everywhere but no one has posted a solution, they all say to set the timeout in the config but how do you do this?</p>
  
  <p>How do I reset/override this setting from my XMLRPC client or server?</p>
  
  <p>Here is what I'm trying:</p>
  
  <pre><code>$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc');
  $client = $server-&gt;getProxy(); 
  
  // Increasing the timeout
  $client-&gt;setConfig(array('timeout'=&gt;30));
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>Fatal error: Uncaught exception 'Zend_XmlRpc_Client_FaultException' 
  with message 'Method "setConfig" does not exist' 
  in /usr/share/php/libzend-framework-php/Zend/XmlRpc/Client.php:370
  </code></pre>
  
  <p>Trying to pass as arg:</p>
  
  <pre><code>$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc', array('timeout'=&gt;30));
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>Catchable fatal error: Argument 2 passed to 
  Zend_XmlRpc_Client::__construct() must be an 
  instance of Zend_Http_Client
  </code></pre>
  
  <p>Found the solution and here it is:</p>
  
  <pre><code>$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc');
  
  // Get the HTTP Client used by the XMLRPC client
  $http_client = $server-&gt;getHttpClient();
  
  // Increasing the HTTP timeout
  $http_client-&gt;setConfig(array('timeout'=&gt;30));
  
  $client = $server-&gt;getProxy(); 
  </code></pre>
  
  <p>One Line works for me as well:</p>
  
  <pre><code>$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc');
  
  // Get the HTTP Client used by the XMLRPC client and increasing the HTTP timeout
  $server-&gt;getHttpClient()-&gt;setConfig(array('timeout'=&gt;30));
  
  $client = $server-&gt;getProxy();
  </code></pre>