Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-01-09 15:14:39 +0300
committerGitHub <noreply@github.com>2019-01-09 15:14:39 +0300
commita48b0e8b3c3b00014bfc86a0cd116dde80470aa9 (patch)
treecac514f2825dffbe45fbe158cee4345f50721369
parent53b6fa1194d6fb90708d9411beddce7145f61307 (diff)
parent97df9512e0e148fafddfb7361021eb8707377abf (diff)
Merge pull request #348 from nextcloud/capabilities_timeout
Have the capabilities properly timeout
-rw-r--r--lib/Capabilities.php7
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 [];
}