summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/external.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-21 17:37:44 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-22 10:29:40 +0200
commitec968a48e44159c1bb323d6ea3be3388277d7928 (patch)
tree82e5b19284b6f0bef067e4f082f68ca0214d1079 /apps/files_sharing/ajax/external.php
parent3e763ac81e895d2b4af18af2bcd7a31e25da4cf6 (diff)
downloadnextcloud-server-ec968a48e44159c1bb323d6ea3be3388277d7928.tar.gz
nextcloud-server-ec968a48e44159c1bb323d6ea3be3388277d7928.zip
Increase fed share timeout from 3 to 10 + unit tests
Diffstat (limited to 'apps/files_sharing/ajax/external.php')
-rw-r--r--apps/files_sharing/ajax/external.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php
index 6a0a4dfc06b..4a7a6096c91 100644
--- a/apps/files_sharing/ajax/external.php
+++ b/apps/files_sharing/ajax/external.php
@@ -78,8 +78,8 @@ $externalManager = new \OCA\Files_Sharing\External\Manager(
if (substr($remote, 0, 5) === 'https') {
try {
\OC::$server->getHTTPClientService()->newClient()->get($remote, [
- 'timeout' => 3,
- 'connect_timeout' => 3,
+ 'timeout' => 10,
+ 'connect_timeout' => 10,
])->getBody();
} catch (\Exception $e) {
\OCP\JSON::error(array('data' => array('message' => $l->t('Invalid or untrusted SSL certificate'))));