force set curl timeouts
This commit is contained in:
parent
50b622142a
commit
dd966fed31
|
@ -237,6 +237,8 @@
|
||||||
|
|
||||||
if ($fp) {
|
if ($fp) {
|
||||||
curl_setopt($ch, CURLOPT_FILE, $fp);
|
curl_setopt($ch, CURLOPT_FILE, $fp);
|
||||||
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
|
||||||
|
curl_setopt($ch, CURLOPT_TIMEOUT, 45);
|
||||||
curl_exec($ch);
|
curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
Loading…
Reference in New Issue