Skip to content

Commit

Permalink
make the timeout configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo64 committed Mar 1, 2020
1 parent 3ff798c commit 0a85257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RdsDataDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function connect(array $params, $username = null, $password = null, array
$options['http_handler'] = new GuzzleHandler(new Client([
// all calls to the data-api will time out after 45 seconds
// https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
'timeout' => 45,
'timeout' => $driverOptions['timeout'] ?? 45,
]));

return new RdsDataConnection(
Expand Down

0 comments on commit 0a85257

Please sign in to comment.