diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-18 01:10:04 -0700 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-18 01:10:04 -0700 |
commit | 11cfb9dc48383ad3cb3aa5c5871e0135cfef17b5 (patch) | |
tree | df6ec91c4978cb57035056cd6d35ad227e835242 /lib/private/util.php | |
parent | 76be7cd1ac54a8f4a5707c7a50eee106383aa51d (diff) | |
parent | b1f72edc5705f3d5eb5f8910e2e14d0fa9805222 (diff) | |
download | nextcloud-server-11cfb9dc48383ad3cb3aa5c5871e0135cfef17b5.tar.gz nextcloud-server-11cfb9dc48383ad3cb3aa5c5871e0135cfef17b5.zip |
Merge pull request #5358 from owncloud/postinstall-ocdavclientwithtimeout
Added timeout for WebDAV post setup check
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 6c0a8d7bab5..43f2c9bb635 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -806,7 +806,9 @@ class OC_Util { 'baseUri' => OC_Helper::linkToRemote('webdav'), ); - $client = new \Sabre_DAV_Client($settings); + $client = new \OC_DAVClient($settings); + + $client->setRequestTimeout(10); // for this self test we don't care if the ssl certificate is self signed and the peer cannot be verified. $client->setVerifyPeer(false); |