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.
This commit is contained in:
Jarrett 2016-05-05 14:20:46 -06:00
parent 48be0b781a
commit 482bfae123
1 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ class OCSClient {
$response = $client->get( $response = $client->get(
$this->getAppStoreUrl() . '/content/categories', $this->getAppStoreUrl() . '/content/categories',
[ [
'timeout' => 5, 'timeout' => 20,
'query' => [ 'query' => [
'version' => implode('x', $targetVersion), 'version' => implode('x', $targetVersion),
], ],
@ -179,7 +179,7 @@ class OCSClient {
$response = $client->get( $response = $client->get(
$this->getAppStoreUrl() . '/content/data', $this->getAppStoreUrl() . '/content/data',
[ [
'timeout' => 5, 'timeout' => 20,
'query' => [ 'query' => [
'version' => implode('x', $targetVersion), 'version' => implode('x', $targetVersion),
'filter' => $filter, 'filter' => $filter,
@ -256,7 +256,7 @@ class OCSClient {
$response = $client->get( $response = $client->get(
$this->getAppStoreUrl() . '/content/data/' . urlencode($id), $this->getAppStoreUrl() . '/content/data/' . urlencode($id),
[ [
'timeout' => 5, 'timeout' => 20,
'query' => [ 'query' => [
'version' => implode('x', $targetVersion), 'version' => implode('x', $targetVersion),
], ],
@ -321,7 +321,7 @@ class OCSClient {
$response = $client->get( $response = $client->get(
$url, $url,
[ [
'timeout' => 5, 'timeout' => 20,
'query' => [ 'query' => [
'version' => implode('x', $targetVersion), 'version' => implode('x', $targetVersion),
], ],