diff --git a/RequestManagers/CurlRequestManager.php b/RequestManagers/CurlRequestManager.php index 9b762d7..0cb1c0f 100644 --- a/RequestManagers/CurlRequestManager.php +++ b/RequestManagers/CurlRequestManager.php @@ -213,6 +213,8 @@ public function getAppAuth() curl_setopt($ch, CURLOPT_URL, $this->getBaseUrl() . $path); curl_setopt($ch, CURLOPT_PORT, $this->getPort()); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); + // Setting timeout that throws exception when the PushApi is down + curl_setopt($ch, CURLOPT_TIMEOUT, 2000); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);