diff --git a/application/models/Clublog_model.php b/application/models/Clublog_model.php index 7976b8443..db84f8ba9 100644 --- a/application/models/Clublog_model.php +++ b/application/models/Clublog_model.php @@ -70,6 +70,7 @@ class Clublog_model extends CI_Model // send a file curl_setopt($request, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt( $request, CURLOPT_POSTFIELDS, @@ -166,6 +167,7 @@ class Clublog_model extends CI_Model // recieve a file curl_setopt($request, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); $response = curl_exec($request); $info = curl_getinfo($request); curl_close($request); @@ -372,6 +374,7 @@ class Clublog_model extends CI_Model $request = curl_init('https://clublog.org/realtime.php'); curl_setopt($request, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt( $request, CURLOPT_POSTFIELDS,