diff --git a/lib/connection-pool.js b/lib/connection-pool.js index 426787f..4fbe2fd 100644 --- a/lib/connection-pool.js +++ b/lib/connection-pool.js @@ -19,7 +19,7 @@ function ConnectionPool(poolConfig, connectionConfig) { this.max = poolConfig.max || 50; - this.min = poolConfig.min || 10; + this.min = (poolConfig.min>=0) ? poolConfig.min : 10; this.idleTimeout = !poolConfig.idleTimeout && poolConfig.idleTimeout !== false ? 300000 //5 min