From 4b3498ae8e78a11c7c99663d45bab6a0a14df052 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 24 Aug 2009 07:12:08 +0000 Subject: [PATCH] Added timeout to GOsa::log mysql connections. -While the server wasn't reachable, we had logins > 60seconds due to timeout reasons. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14110 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_log.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/gosa-core/include/class_log.inc b/gosa-core/include/class_log.inc index 4b846e572..fbdbb371c 100644 --- a/gosa-core/include/class_log.inc +++ b/gosa-core/include/class_log.inc @@ -159,6 +159,7 @@ class log { /* Connect to the database */ + ini_set("mysql.connect_timeout",5); $con = @mysql_pconnect($server_name,$server['USER'],$server['PWD']); if(!$con){ $error = msgPool::dbconnect(_("MySQL logging"),mysql_error()); -- 2.30.2