From 473c1ac3b129e667404120631772640cc4474cc9 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 31 Jul 2018 14:08:45 +0200 Subject: [PATCH] Set download timeout. --- classes/URLanalyzer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/URLanalyzer.php b/classes/URLanalyzer.php index d876d66..11c1289 100644 --- a/classes/URLanalyzer.php +++ b/classes/URLanalyzer.php @@ -25,6 +25,7 @@ class URLAnalyzer { //Set timeout curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); + curl_setopt($ch, CURLOPT_TIMEOUT, 5); //Get the response curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);