提交 48e23cb7 authored 作者: Thomas Mueller's avatar Thomas Mueller

JdbcConnectionPool: the default connection timeout is now 30 seconds (it used to be 5 minutes).

上级 11d651b5
...@@ -64,7 +64,7 @@ import org.h2.message.DbException; ...@@ -64,7 +64,7 @@ import org.h2.message.DbException;
*/ */
public class JdbcConnectionPool implements DataSource, ConnectionEventListener { public class JdbcConnectionPool implements DataSource, ConnectionEventListener {
private static final int DEFAULT_TIMEOUT = 5 * 60; private static final int DEFAULT_TIMEOUT = 30;
private final ConnectionPoolDataSource dataSource; private final ConnectionPoolDataSource dataSource;
private final Stack<PooledConnection> recycledConnections = new Stack<PooledConnection>(); private final Stack<PooledConnection> recycledConnections = new Stack<PooledConnection>();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论