]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added timeout value to WebDAV post setup check
authorVincent Petry <pvince81@owncloud.com>
Wed, 16 Oct 2013 10:33:30 +0000 (12:33 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 16 Oct 2013 10:34:22 +0000 (12:34 +0200)
Fixes #5357

lib/private/util.php

index 6c0a8d7bab51948f73b15394470458ab6bb025ea..43f2c9bb635f180210f3428ef86f7a8fb2350de3 100755 (executable)
@@ -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);