protected function getConnection() { if (is_null($this->requestTimeOut)) { return parent::getConnection(); } $connection = parent::getConnection(); $connection->setTimeout($this->requestTimeOut); return $connection; }
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; }
protected function buildConnectionInstance() { $connection = parent::buildConnectionInstance(); $connection->setTimeout(30)->setServerBaseUrl($this->params['base_url'])->setServerHostName($this->params['hostname'])->setTryToSwitchEndpointOnError(false)->setTryToResendOnError(false); return $connection; }