From cb0a89cb03a707bdc110d90477f0a5d5363e84a8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 24 May 2023 08:36:34 -0400 Subject: [PATCH] Fixed pool size auto-calculated. --- src/engine/gameManager/DbManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index 3b538a8d..94282831 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -307,6 +307,8 @@ public enum DbManager { config.setUsername(ConfigManager.MB_DATABASE_USER.getValue()); config.setPassword(ConfigManager.MB_DATABASE_PASS.getValue()); + // Must be set lower than SQL server connection lifetime! + config.addDataSourceProperty("maxLifetime", "3600000"); config.addDataSourceProperty("characterEncoding", "utf8");