From: Marcin Haba Date: Wed, 11 Apr 2018 18:53:15 +0000 (+0200) Subject: baculum: Set curl connection timeout X-Git-Tag: Release-9.2.0~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2411b545e84d740ef088a061d273ec86ab481ec0;p=thirdparty%2Fbacula.git baculum: Set curl connection timeout --- diff --git a/gui/baculum/protected/Web/Class/BaculumAPIClient.php b/gui/baculum/protected/Web/Class/BaculumAPIClient.php index 36e8f90d86..00a4e92541 100644 --- a/gui/baculum/protected/Web/Class/BaculumAPIClient.php +++ b/gui/baculum/protected/Web/Class/BaculumAPIClient.php @@ -97,6 +97,7 @@ class BaculumAPIClient extends WebModule { curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIE, 'PHPSESSID=' . md5(session_id())); curl_setopt($ch, CURLOPT_HEADER, true); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8); return $ch; }