Added timeout to the Testfunction

This commit is contained in:
int2001
2024-05-01 04:40:26 +00:00
parent b50b45231b
commit d0cf154dcb

View File

@@ -37,6 +37,7 @@ class Qrz extends CI_Controller {
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 20);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec($ch);