]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Set curl connection timeout
authorMarcin Haba <marcin.haba@bacula.pl>
Wed, 11 Apr 2018 18:53:15 +0000 (20:53 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Apr 2018 13:07:11 +0000 (15:07 +0200)
gui/baculum/protected/Web/Class/BaculumAPIClient.php

index 36e8f90d86ffbab047f0eefe61153eebb3238ac1..00a4e92541d88ff3145b5b788b0214d95a6b63ba 100644 (file)
@@ -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;
        }