Commit 2bb4252f authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Extended active connection timeout to 15 minutes (from 5). Primarily...

Extended active connection timeout to 15 minutes (from 5).  Primarily important during database updates.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10215 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6f3f439f
......@@ -39,6 +39,7 @@ public class DefaultConnectionProvider implements ConnectionProvider {
private String password;
private int minConnections = 3;
private int maxConnections = 10;
private int activeTimeout = 900000; // 15 minutes in milliseconds
private String testSQL = "";
private Boolean testBeforeUse = true;
private Boolean testAfterUse = true;
......@@ -88,6 +89,7 @@ public class DefaultConnectionProvider implements ConnectionProvider {
public void start() {
proxoolURL = "proxool.openfire:"+getDriver()+":"+getServerURL();
settings = new Properties();
settings.setProperty("proxool.maximum-activetime", Integer.toString(activeTimeout));
settings.setProperty("proxool.maximum-connection-count", Integer.toString(getMaxConnections()));
settings.setProperty("proxool.minimum-connection-count", Integer.toString(getMinConnections()));
settings.setProperty("proxool.maximum-connection-lifetime", Integer.toString((int)(86400000 * getConnectionTimeout())));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment