Set download timeout.

This commit is contained in:
Pierre HUBERT 2018-07-31 14:08:45 +02:00
parent 54cff328d7
commit 473c1ac3b1

View File

@ -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);