From fe9f8feec69ccfe66996f969bc0d063b136eae24 Mon Sep 17 00:00:00 2001 From: Tom Esposito Date: Tue, 20 Jan 2015 10:09:07 -0600 Subject: [PATCH] modified poolConfig.min to accept 0 as a value --- lib/connection-pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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