zend-patterns / ZendServerWebApiModule

Zend Server Web API Zend Framework module
Other
8 stars 11 forks source link

Longer Timeout In HTTP Client #2

Closed brobie closed 11 years ago

brobie commented 11 years ago

We are trying to deploy at 30mb ZPK to AWS and are getting an exception thrown because of a timeout. The default timeout is set to 10 sec. We can get around this by creating our own project and importing the SDK as a module, and creating a new cdsglobal.local.php config file, but it would be more convenient if the timeout was set to something greater. It's totally your call - but something to think about.

// Zend Server API specific Settings 'zsapi' => array ( // Default Zend Server Target 'target' => array( 'zsurl' => 'http://localhost:10081', 'zskey' => 'zf', 'zssecret' => 'a1c5b69aa706450c6715fd817b5c7cd643144bb2c70d1e4d34c8a0f3098e2c65', 'zsversion' => '6.1', ), // HTTP Client 'client' => array( 'adapter' => '\ZendServerWebApi\Model\Http\Adapter\Socket', 'timeout' => '60', ), ),

sophpie commented 11 years ago

Thanks for your feedback, but I don't see anything to do inside this Module to help you. It's hard to set a timeout that can fit for every context and every API call.

slaff commented 11 years ago

Hi Brobie, I think I can add something like this. Stay tuned. Regards, Slavey