aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ocsclient.php
diff options
context:
space:
mode:
authorthomas <thomas@thomas-VirtualBox.(none)>2012-11-12 16:29:22 +0100
committerthomas <thomas@thomas-VirtualBox.(none)>2012-11-12 16:29:22 +0100
commit847467ab001fadc666770a0d47e909744935aa16 (patch)
tree89ca85b617d0ae0374a3141e03738a8a473035c3 /lib/ocsclient.php
parent4564898c288ab4cd221eeba91ab728331f12dba5 (diff)
downloadnextcloud-server-847467ab001fadc666770a0d47e909744935aa16.tar.gz
nextcloud-server-847467ab001fadc666770a0d47e909744935aa16.zip
Add connection time out option
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);