Skip to content

Commit

Permalink
Set some reasonable timeouts for the api requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dovereem committed Sep 22, 2022
1 parent 67b2e8f commit a10a894
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RDW/RDWOpenDataApiClient/RDWOpenDataApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class RDWOpenDataApiClient
protected function createGuzzleClient(): Client
{
return new Client([
'connect_timeout' => 5,
'timeout' => 10,
'http_errors' => false,
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json'
Expand Down

0 comments on commit a10a894

Please sign in to comment.