Set a timeout on curl so we fail faster

This commit is contained in:
nathangray 2021-04-14 10:59:49 -06:00
parent d9b29fa82a
commit 3027123fbd

View File

@ -559,6 +559,7 @@ class SharingBase extends LoggedInTest
$curl = curl_init($link);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 3);
$cookie = '';
if($GLOBALS['egw']->session->sessionid || $share['share_with'])
{