From bf3704100746cdd41425ddf367ada4559e1f06b0 Mon Sep 17 00:00:00 2001 From: DPD Development Date: Tue, 24 Mar 2026 16:10:02 +0100 Subject: [PATCH] Lower the default timeouts - 1000 seconds to 30 seconds for the request - 100 seconds to 2 seconds for the connection Previously processes could be completely hanging on the default too high values. --- src/Common/HttpClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/HttpClient.php b/src/Common/HttpClient.php index 7ebd687..9828584 100644 --- a/src/Common/HttpClient.php +++ b/src/Common/HttpClient.php @@ -43,12 +43,12 @@ class HttpClient implements HttpClientInterface /** * @var int */ - private $timeout = 100; + private $timeout = 30; /** * @var int */ - private $connectionTimeout = 100; + private $connectionTimeout = 2; /** * @var array @@ -71,7 +71,7 @@ class HttpClient implements HttpClientInterface * @param int $connectionTimeout >= 0 * @param array $headers */ - public function __construct($endpoint, $timeout = 1000, $connectionTimeout = 1000, $headers = []) + public function __construct($endpoint, $timeout = 30, $connectionTimeout = 2, $headers = []) { $this->endpoint = $endpoint;