diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-09 15:04:42 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-09 15:04:42 +0300 |
commit | 97df9512e0e148fafddfb7361021eb8707377abf (patch) | |
tree | cac514f2825dffbe45fbe158cee4345f50721369 | |
parent | 53b6fa1194d6fb90708d9411beddce7145f61307 (diff) |
Have the capabilities properly timeout
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | lib/Capabilities.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 439930c0..861231ec 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -104,7 +104,12 @@ class Capabilities implements ICapability { $client = $this->clientService->newClient(); try { - $response = $client->get($capabilitiesEndpoint); + $response = $client->get( + $capabilitiesEndpoint, + [ + 'timeout' => 5, + ] + ); } catch (\Exception $e) { return []; } |