Skip to content

Commit

Permalink
Merge pull request #116 from avadev/timeoutUpdate
Browse files Browse the repository at this point in the history
added timeout to connection options
  • Loading branch information
contygm authored Mar 9, 2020
2 parents 3047cfb + 9a3acaa commit fa8cf79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ protected function restCall($apiUrl, $verb, $guzzleParams)
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 20.1.0; {$this->machineName}"
];
}

// timeout for 1200s (20 min)
$guzzleParams['timeout'] = 1200;

// Contact the server
try {
$response = $this->client->request($verb, $apiUrl, $guzzleParams);
Expand Down

0 comments on commit fa8cf79

Please sign in to comment.