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:
parent
64c12e6da1
commit
74f0d09559
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user