mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +00:00
Set download timeout.
This commit is contained in:
parent
54cff328d7
commit
473c1ac3b1
@ -25,6 +25,7 @@ class URLAnalyzer {
|
|||||||
|
|
||||||
//Set timeout
|
//Set timeout
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
|
||||||
|
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
|
||||||
|
|
||||||
//Get the response
|
//Get the response
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user