Skip to content
Snippets Groups Projects
Commit 847467ab authored by thomas's avatar thomas
Browse files

Add connection time out option

parent 4564898c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment