From ef5ab27544d43f62eb696670d4275b7cc49aa96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= Date: Tue, 23 Aug 2022 11:15:34 +0200 Subject: [PATCH] fix: increase RPC connector timeout --- lib/RpcConnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/RpcConnector.php b/lib/RpcConnector.php index 539874ad..bd07fc3c 100644 --- a/lib/RpcConnector.php +++ b/lib/RpcConnector.php @@ -21,7 +21,7 @@ class RpcConnector { public const COOKIE_FILE = '/tmp/proxyidp_cookie.txt'; - public const CONNECT_TIMEOUT = 1; + public const CONNECT_TIMEOUT = 5; public const TIMEOUT = 15; @@ -131,7 +131,7 @@ public function post($manager, $method, $params = []) if ($json === false) { throw new Exception( - 'Can\'t get response from Perun. Call: ' . $uri . ', Params: ' . $paramsJson . ', Response: ' . $json + 'Can\'t get response from Perun. Call: ' . $uri . ', Params: ' . $paramsJson . ', Error: ' . curl_error($ch) ); }