Skip to content

Commit

Permalink
Allow setting idleTimeout to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nibbler999 authored and rusher committed Oct 12, 2022
1 parent 5928a97 commit 8f75367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/pool-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PoolOptions {

this.acquireTimeout = opts.acquireTimeout === undefined ? 10000 : opts.acquireTimeout;
this.connectionLimit = opts.connectionLimit === undefined ? 10 : opts.connectionLimit;
this.idleTimeout = opts.idleTimeout || 1800;
this.idleTimeout = opts.idleTimeout === undefined ? 1800 : opts.idleTimeout;
this.leakDetectionTimeout = opts.leakDetectionTimeout || 0;
this.initializationTimeout = opts.initializationTimeout === undefined ? 30000 : opts.initializationTimeout;
this.minDelayValidation = opts.minDelayValidation === undefined ? 500 : opts.minDelayValidation;
Expand Down

0 comments on commit 8f75367

Please sign in to comment.