示例#1
0
 protected function getConnection()
 {
     if (is_null($this->requestTimeOut)) {
         return parent::getConnection();
     }
     $connection = parent::getConnection();
     $connection->setTimeout($this->requestTimeOut);
     return $connection;
 }
示例#2
0
 protected function buildRequestInstance()
 {
     $request = parent::buildRequestInstance();
     $requestData = $request->getData();
     if (!is_null($this->account)) {
         $requestData['account'] = $this->account->getChildObject()->getServerHash();
     }
     $request->setData($requestData);
     return $request;
 }
示例#3
0
 protected function buildConnectionInstance()
 {
     $connection = parent::buildConnectionInstance();
     $connection->setTimeout(30)->setServerBaseUrl($this->params['base_url'])->setServerHostName($this->params['hostname'])->setTryToSwitchEndpointOnError(false)->setTryToResendOnError(false);
     return $connection;
 }