From 5d78e0e12eb517f04b69cd760e10d781e7af0506 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Mon, 10 Feb 2020 21:56:24 -0500 Subject: [PATCH] Restored timeout from 10s to 60s. Some API calls to ecobee take a while; need to allow for that. --- api/external_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/external_api.php b/api/external_api.php index 4be4317..a57bbca 100644 --- a/api/external_api.php +++ b/api/external_api.php @@ -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);