From a7bc5bcef70c9c479a2651950e48fb2a7ae939e8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Mar 2017 21:48:31 +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 263631fe5985..79e9332f474c 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