mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-06 10:59:35 +01:00
lower mysql connection timeout - may help with #81
This commit is contained in:
parent
e5e77ffec5
commit
31a597ca81
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user