Added new options to the configuration for connection pooling.
Code (Text):
# LiteBans utilizes connection pooling for extra performance and reliability.
# min_connections: Minimum amount of pooled connections.
# max_connections: Maximum amount of pooled connections. See: https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
# timeout: Connection timeout.
pool:
min_connections: 1
max_connections: 10
timeout: 30 seconds
/litebans sqlexec will now show the full results of any executed database queries in a table.
Fixes:
Some optimizations and fixes regarding muted players were made.
Fixed a single pooled connection being leaked on startup.
Fixed "Database is locked" errors while using a SQLite database. These errors could occur when multiple players join at the same time.
Fixed unnecessary error "No operations allowed after statement closed", generated when there are database connectivity issues.