1
0
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:
Jon Ziebell 2020-02-10 21:56:24 -05:00
parent 132eb46404
commit 5d78e0e12e

View File

@ -59,7 +59,7 @@ class external_api extends cora\api {
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, $arguments['url']);
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_HEADER, true);