diff --git a/src/Client/Client.php b/src/Client/Client.php index 3943ea2..44d50e8 100644 --- a/src/Client/Client.php +++ b/src/Client/Client.php @@ -14,6 +14,9 @@ class Client { + private const CONNECTION_TIMEOUT = 10; + private const TIMEOUT = 30; + private ClientInterface $client; public function __construct( @@ -23,6 +26,8 @@ public function __construct( $this->client = $client ?? new GuzzleClient( [ 'base_uri' => rtrim($this->configProvider->baseUrl, '/') . '/', + 'timeout' => self::TIMEOUT, + 'connect_timeout' => self::CONNECTION_TIMEOUT ] ); }