From 5f78dee165f551ca84d01c2afd99b8f22e16a3da Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 31 Jan 2025 11:25:30 +0000 Subject: [PATCH] Added Timeout (important in case of blacklisting) --- application/models/Clublog_model.php | 3 +++ 1 file changed, 3 insertions(+) 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,