From 52e31405f7848e4fd9f9d19297bbb87facb09376 Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Wed, 16 Oct 2013 12:33:30 +0200
Subject: [PATCH] Added timeout value to WebDAV post setup check

Fixes #5357
---
 lib/private/util.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index 6c0a8d7bab..43f2c9bb63 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);
-- 
GitLab