diff --git a/src/Client/Client.php b/src/Client/Client.php index 364a226..60e1f28 100644 --- a/src/Client/Client.php +++ b/src/Client/Client.php @@ -13,11 +13,14 @@ class Client { + private const CONNECTION_TIMEOUT = 10; + private const TIMEOUT = 30; + private ClientInterface $client; public function __construct(?ClientInterface $client = null) { - $this->client = $client ?? new GuzzleClient(); + $this->client = $client ?? new GuzzleClient(['timeout' => self::TIMEOUT, 'connect_timeout' => self::CONNECTION_TIMEOUT]); } public function request(Request $request): ResponseInterface