diff --git a/app/Libraries/CurlUtils.php b/app/Libraries/CurlUtils.php index 263631fe59..79e9332f47 100644 --- a/app/Libraries/CurlUtils.php +++ b/app/Libraries/CurlUtils.php @@ -50,9 +50,11 @@ class CurlUtils } $client = Client::getInstance(); + $client->isLazy(); $client->getEngine()->setPath($path); $request = $client->getMessageFactory()->createRequest($url, $method); + $request->setTimeout(5000); $response = $client->getMessageFactory()->createResponse(); // Send the request