aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ocsclient.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ocsclient.php')
-rw-r--r--lib/ocsclient.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 283f95d5851..795ce30190c 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -70,6 +70,7 @@ class OC_OCSClient{
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($curl, CURLOPT_URL, $url);
$data = curl_exec($curl);