Add connection time out option

remotes/origin/stable5
thomas 2012-11-12 16:29:22 +07:00
parent 4564898c28
commit 847467ab00
1 changed files with 1 additions and 0 deletions

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