Add connection time out option

remotes/origin/stable5
thomas 13 years ago
parent 4564898c28
commit 847467ab00
  1. 1
      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);

Loading…
Cancel
Save