mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Restored timeout from 10s to 60s.
Some API calls to ecobee take a while; need to allow for that.
This commit is contained in:
parent
132eb46404
commit
5d78e0e12e
@ -59,7 +59,7 @@ class external_api extends cora\api {
|
|||||||
$curl_handle = curl_init();
|
$curl_handle = curl_init();
|
||||||
curl_setopt($curl_handle, CURLOPT_URL, $arguments['url']);
|
curl_setopt($curl_handle, CURLOPT_URL, $arguments['url']);
|
||||||
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 5);
|
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 10);
|
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 60);
|
||||||
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
|
||||||
// curl_setopt($curl_handle, CURLOPT_HEADER, true);
|
// curl_setopt($curl_handle, CURLOPT_HEADER, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user