1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Reduced timeout to third party APIs from 60s to 10s

This commit is contained in:
Jon Ziebell 2020-02-08 14:07:34 -05:00
parent 64c12e6da1
commit 74f0d09559

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, 60);
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 10);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($curl_handle, CURLOPT_HEADER, true);