mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 15:30:21 +01:00
Set a timeout on curl so we fail faster
This commit is contained in:
parent
d9b29fa82a
commit
3027123fbd
@ -559,6 +559,7 @@ class SharingBase extends LoggedInTest
|
|||||||
$curl = curl_init($link);
|
$curl = curl_init($link);
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
|
||||||
|
curl_setopt($curl, CURLOPT_TIMEOUT, 3);
|
||||||
$cookie = '';
|
$cookie = '';
|
||||||
if($GLOBALS['egw']->session->sessionid || $share['share_with'])
|
if($GLOBALS['egw']->session->sessionid || $share['share_with'])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user