mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Set download timeout.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user