summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJarrett <JetUni@users.noreply.github.com>2016-05-05 14:20:46 -0600
committerJarrett <JetUni@users.noreply.github.com>2016-05-05 14:20:46 -0600
commit482bfae123c3000d521c5f0693c6b27a6267845a (patch)
tree0c43ae573aa04972edf3be347bc321a96318952f /lib
parent48be0b781a07860b4c29b2dd98b0b95207594245 (diff)
downloadnextcloud-server-482bfae123c3000d521c5f0693c6b27a6267845a.tar.gz
nextcloud-server-482bfae123c3000d521c5f0693c6b27a6267845a.zip
Set higher timeout limit
Set the timeout limit to be 20 instead of 5 for machines that take longer to load the apps from apps.owncloud.org so that it doesn't show up blank.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/OCSClient.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/OCSClient.php b/lib/private/OCSClient.php
index a783a1f8425..da2f5c61769 100644
--- a/lib/private/OCSClient.php
+++ b/lib/private/OCSClient.php
@@ -128,7 +128,7 @@ class OCSClient {
$response = $client->get(
$this->getAppStoreUrl() . '/content/categories',
[
- 'timeout' => 5,
+ 'timeout' => 20,
'query' => [
'version' => implode('x', $targetVersion),
],
@@ -179,7 +179,7 @@ class OCSClient {
$response = $client->get(
$this->getAppStoreUrl() . '/content/data',
[
- 'timeout' => 5,
+ 'timeout' => 20,
'query' => [
'version' => implode('x', $targetVersion),
'filter' => $filter,
@@ -256,7 +256,7 @@ class OCSClient {
$response = $client->get(
$this->getAppStoreUrl() . '/content/data/' . urlencode($id),
[
- 'timeout' => 5,
+ 'timeout' => 20,
'query' => [
'version' => implode('x', $targetVersion),
],
@@ -321,7 +321,7 @@ class OCSClient {
$response = $client->get(
$url,
[
- 'timeout' => 5,
+ 'timeout' => 20,
'query' => [
'version' => implode('x', $targetVersion),
],