The HTTP Client is returned by reference so you don't need to "set" it in
the Rest client after changing it.

--
*Hector Virgen*
Sr. Web Developer
Walt Disney Parks and Resorts Online
http://www.virgentech.com



On Tue, Aug 31, 2010 at 8:02 AM, caseyw <[email protected]> wrote:

>
> Zend_Rest_Client uses Zend_Http_Client, and has a getter for the client.
> Couldn't this be used to adjust the default 10 second timeout to 30?
>
> $client = new Zend_Rest_Client($uri);
>
> $httpClient = $client->getHttpClient();
> $httpClient->setConfig(array('timeout' => 30));
>
> $client->setHttpClient($httpClient);
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Zend-Rest-Client-and-timeout-tp2340323p2401745.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to