From: hickert Date: Mon, 24 Aug 2009 07:12:08 +0000 (+0000) Subject: Added timeout to GOsa::log mysql connections. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b3498ae8e78a11c7c99663d45bab6a0a14df052;p=gosa.git 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 --- 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());