From 847467ab001fadc666770a0d47e909744935aa16 Mon Sep 17 00:00:00 2001
From: thomas <thomas@thomas-VirtualBox.(none)>
Date: Mon, 12 Nov 2012 16:29:22 +0100
Subject: [PATCH] Add connection time out option

---
 lib/ocsclient.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 283f95d585..795ce30190 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);
-- 
GitLab