From dfd71e1228bfa6c7597803e8bc486bab5f29a215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Fri, 29 Dec 2017 17:55:46 +0100 Subject: [PATCH] added timeouts --- src/Dandomain/Api/Api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Dandomain/Api/Api.php b/src/Dandomain/Api/Api.php index 51609f6..178536d 100644 --- a/src/Dandomain/Api/Api.php +++ b/src/Dandomain/Api/Api.php @@ -161,6 +161,8 @@ public function call($method = 'GET', $uri, $options = array()) { 'Accept' => 'application/json', ), 'verify' => false, + 'connect_timeout' => 60, + 'timeout' => 600, ); $options = array_merge($defaultOptions, $options);