Code

Increased Timeouts for communications with the gosa-si server
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 May 2009 08:39:48 +0000 (08:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 May 2009 08:39:48 +0000 (08:39 +0000)
-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

index 3cf6e7da5c42712045ee2d28c0f1d3a3dfd7ecaa..33e841885166744e132c6135832db1e120faa727 100644 (file)
@@ -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("<xml><header>gosa_ping</header><source>GOSA</source><target>$target</target></xml>", TRUE);
       return (count($answer) ? TRUE:FALSE);
     }