1d8a60749d
this commit further helps tame the mysql connection pool (and really
reconnecting to the pool even when the underlying db goes down) further
from commit: #31a597c
this sets up `setValidationTimeout`, and `setConnectionTestQuery`
in order to better (more speedily(?)/fastly(?)/<other adective>ly(?))
handle connection timeouts in a timely manner. (although admittedly
this is already handeled well imo with the cache). however, it could
be better ™️.
in order to do this I did the following things:
1. Switch to `TimeUnit.SECONDS.toMillis` instead of manually entering
milliseconds, and having the time in seconds as a comment. just
makes it more readable imo. if you want me to change it back I can
I'm not like attached to this or anything.
2. Perform more common validation timeouts with `setValidationTimeout`
this allows us to potentially bump back up the connection timeout
(although I see no harm leaving it where it is), although allows
us to still "fail-fast" in a way when doing validations.
3. Use `setConnectionTestQuery` for people who somehow someway
may not be using a JDBC4 compliant driver.
|
||
---|---|---|
.. | ||
src/main/java/me/lucko/luckperms | ||
pom.xml |