summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/swift.php
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-10-24 16:19:17 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-10-24 16:19:17 +0200
commitdd82481f59b35a8dcc586868e61753210e9eba0c (patch)
treeef36601779534b395d29d4a7237a16d60eb5ddbd /apps/files_external/lib/swift.php
parent128d3221cc6a0cb4f111b2c4c5024345a6b1dd10 (diff)
downloadnextcloud-server-dd82481f59b35a8dcc586868e61753210e9eba0c.tar.gz
nextcloud-server-dd82481f59b35a8dcc586868e61753210e9eba0c.zip
add configuration parameter to manually set the timeout of HTTP requests
Diffstat (limited to 'apps/files_external/lib/swift.php')
-rw-r--r--apps/files_external/lib/swift.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index fe28e124fe3..bb650dacc7b 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -109,6 +109,11 @@ class Swift extends \OC\Files\Storage\Common {
}
$this->anchor = new \OpenCloud\OpenStack($params['url'], $settings);
+
+ if (isset($params['timeout'])) {
+ $this->anchor->setHttpTimeout($params['timeout']);
+ }
+
$this->connection = $this->anchor->ObjectStore($params['service_name'], $params['region'], 'publicURL');
try {