From d72c199d0bd44d19c6f8c153b94470329950ea7f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Mar 2017 21:45:28 +0200 Subject: [PATCH] Fix PDF attachment with local PhantomJS --- app/Libraries/CurlUtils.php | 2 ++ 1 file changed, 2 insertions(+) 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