lower mysql connection timeout - may help with #81

This commit is contained in:
Luck 2016-12-12 22:21:54 +00:00
parent e5e77ffec5
commit 31a597ca81
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -76,7 +76,8 @@ public class MySQLBacking extends SQLBacking {
config.addDataSourceProperty("cacheServerConfiguration", true); config.addDataSourceProperty("cacheServerConfiguration", true);
config.addDataSourceProperty("elideSetAutoCommits", true); config.addDataSourceProperty("elideSetAutoCommits", true);
config.addDataSourceProperty("useLocalSessionState", true); config.addDataSourceProperty("useLocalSessionState", true);
config.setLeakDetectionThreshold(5000); config.setConnectionTimeout(10000); // 10 seconds
config.setLeakDetectionThreshold(5000); // 5 seconds
hikari = new HikariDataSource(config); hikari = new HikariDataSource(config);