mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
Added CURLOPT_TIMEOUT to Fix GitSync #1936 and some fixme flags
Added CURLOPT_TIMEOUT to Fix GitSync #1936 and some fixme flags
This commit is contained in:
parent
c97464f542
commit
aa0f47e60a
@ -440,7 +440,7 @@ class e_file
|
|||||||
|
|
||||||
$cp = $this->initCurl($remote_url);
|
$cp = $this->initCurl($remote_url);
|
||||||
curl_setopt($cp, CURLOPT_FILE, $fp);
|
curl_setopt($cp, CURLOPT_FILE, $fp);
|
||||||
|
curl_setopt($cp, CURLOPT_TIMEOUT, 20);//FIXME Make Pref - avoids get file timeout on slow connections
|
||||||
/*
|
/*
|
||||||
$cp = curl_init($remote_url);
|
$cp = curl_init($remote_url);
|
||||||
|
|
||||||
@ -452,6 +452,7 @@ class e_file
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$buffer = curl_exec($cp);
|
$buffer = curl_exec($cp);
|
||||||
|
//FIXME addDebug curl_error output - here see #1936
|
||||||
|
|
||||||
curl_close($cp);
|
curl_close($cp);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user