From 3b142b7504079ac4cac31b53ddbaf807c1d42c3e Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Fri, 17 Jan 2020 14:04:15 +0800 Subject: [PATCH] =?UTF-8?q?PoolSource=E7=9A=84=E9=BB=98=E8=AE=A4=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4=E4=BB=8E3=E7=A7=92=E6=94=B9?= =?UTF-8?q?=E6=88=906=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/org/redkale/source/PoolSource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/redkale/source/PoolSource.java b/src/org/redkale/source/PoolSource.java index f13ffef5c..5f3b27453 100644 --- a/src/org/redkale/source/PoolSource.java +++ b/src/org/redkale/source/PoolSource.java @@ -74,9 +74,9 @@ public abstract class PoolSource { this.username = prop.getProperty(JDBC_USER, ""); this.password = prop.getProperty(JDBC_PWD, ""); this.encoding = prop.getProperty(JDBC_ENCODING, ""); - this.connectTimeoutSeconds = Integer.decode(prop.getProperty(JDBC_CONNECTTIMEOUT_SECONDS, "3")); - this.readTimeoutSeconds = Integer.decode(prop.getProperty(JDBC_READTIMEOUT_SECONDS, "3")); - this.writeTimeoutSeconds = Integer.decode(prop.getProperty(JDBC_WRITETIMEOUT_SECONDS, "3")); + this.connectTimeoutSeconds = Integer.decode(prop.getProperty(JDBC_CONNECTTIMEOUT_SECONDS, "6")); + this.readTimeoutSeconds = Integer.decode(prop.getProperty(JDBC_READTIMEOUT_SECONDS, "6")); + this.writeTimeoutSeconds = Integer.decode(prop.getProperty(JDBC_WRITETIMEOUT_SECONDS, "6")); this.maxconns = Math.max(8, Integer.decode(prop.getProperty(JDBC_CONNECTIONS_LIMIT, "" + Runtime.getRuntime().availableProcessors() * 100))); this.semaphore = semaphore == null ? new Semaphore(this.maxconns) : semaphore; String dbtype0 = "";