From ecc68f233ada5070f1479c5388d0fdde1d3762cc Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 May 2009 08:39:48 +0000 Subject: [PATCH] Increased Timeouts for communications with the gosa-si server -Global timeout from 10 to 15 seconds. -Ping timeout from 0.5 to 2 seconds git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13632 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-core/include/class_gosaSupportDaemon.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/gosa-core/include/class_gosaSupportDaemon.inc b/trunk/gosa-core/include/class_gosaSupportDaemon.inc index 3cf6e7da5..33e841885 100644 --- a/trunk/gosa-core/include/class_gosaSupportDaemon.inc +++ b/trunk/gosa-core/include/class_gosaSupportDaemon.inc @@ -52,7 +52,7 @@ class gosaSupportDaemon @param boolean Connect Directly connect to daemon socket. @param float Timeout The timelimit for all socket actions. */ - public function __construct($connect=TRUE,$timeout=10) + public function __construct($connect=TRUE,$timeout=15) { #FIXME: bad idea about referencing global variables from within classes global $config; @@ -1192,7 +1192,7 @@ class gosaSupportDaemon { if (tests::is_mac($target)){ /* Get communication object */ - $d= new gosaSupportDaemon(TRUE,0.5); + $d= new gosaSupportDaemon(TRUE,2); $answer= $d->_send("
gosa_ping
GOSA$target
", TRUE); return (count($answer) ? TRUE:FALSE); } -- 2.30.2