From 74f0d0955936535d91b4e21a14b57da10f57a732 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sat, 8 Feb 2020 14:07:34 -0500 Subject: [PATCH] Reduced timeout to third party APIs from 60s to 10s --- 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 a57bbca..4be4317 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, 60); + curl_setopt($curl_handle, CURLOPT_TIMEOUT, 10); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true); // curl_setopt($curl_handle, CURLOPT_HEADER, true);