Add connection time out option
This commit is contained in:
parent
4564898c28
commit
847467ab00
|
@ -70,6 +70,7 @@ class OC_OCSClient{
|
||||||
|
|
||||||
curl_setopt($curl, CURLOPT_HEADER, 0);
|
curl_setopt($curl, CURLOPT_HEADER, 0);
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
|
||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
curl_setopt($curl, CURLOPT_URL, $url);
|
||||||
|
|
||||||
$data = curl_exec($curl);
|
$data = curl_exec($curl);
|
||||||
|
|
Loading…
Reference in New Issue