Skip to content

Commit

Permalink
modified poolConfig.min to accept 0 as a value
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Esposito committed Jan 20, 2015
1 parent d3b0385 commit fe9f8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe9f8fe

Please sign in to comment.