mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 07:49:27 +00:00
Set download timeout.
This commit is contained in:
parent
54cff328d7
commit
473c1ac3b1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user