Fix #2197 There is no wait forever option, so we actually need a timeout.

This commit is contained in:
t00thpick1
2014-08-12 11:39:43 -04:00
parent 294141c353
commit 0a066f51bb
2 changed files with 25 additions and 17 deletions

View File

@ -314,8 +314,8 @@ public class Config extends AutoUpdateConfigLoader {
public int getMySQLServerPort() { return config.getInt("MySQL.Server.Port", 3306); }
public String getMySQLServerName() { return config.getString("MySQL.Server.Address", "localhost"); }
public String getMySQLUserPassword() { return getStringIncludingInts("MySQL.Database.User_Password"); }
public int getMySQLMaxConnections() { return config.getInt("MySQL.Database.MaxConnections"); }
public int getMySQLMaxPoolSize() { return config.getInt("MySQL.Database.MaxPoolSize"); }
public int getMySQLMaxConnections() { return config.getInt("MySQL.Database.MaxConnections", 30); }
public int getMySQLMaxPoolSize() { return config.getInt("MySQL.Database.MaxPoolSize", 20); }
private String getStringIncludingInts(String key) {
String str = config.getString(key);