From: Vincent Petry Date: Wed, 16 Oct 2013 10:33:30 +0000 (+0200) Subject: Added timeout value to WebDAV post setup check X-Git-Tag: v6.0.0beta2~85^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52e31405f7848e4fd9f9d19297bbb87facb09376;p=nextcloud-server.git Added timeout value to WebDAV post setup check Fixes #5357 --- 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);