Add connection time out option

This commit is contained in:
thomas 2012-11-12 16:29:22 +01:00
parent 4564898c28
commit 847467ab00
1 changed files with 1 additions and 0 deletions

View File

@ -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);