Set Timeout to 10secs for curl

This commit is contained in:
int2001
2025-03-14 14:34:25 +00:00
parent 4e72fa6381
commit 7ad9cfe24c

View File

@@ -261,6 +261,7 @@ class Eqslmethods_model extends CI_Model {
// basic curl options for all requests
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
// use the URL we built
curl_setopt($ch, CURLOPT_URL, $adif);