File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ var defaults = module.exports = {
3333 //frequency to check for idle clients within the client pool
3434 reapIntervalMillis : 1000 ,
3535
36+ //if true the most recently released resources will be the first to be allocated
37+ returnToHead : false ,
38+
3639 //pool log function / boolean
3740 poolLog : false ,
3841
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = function(Client) {
2222 max : clientConfig . poolSize || defaults . poolSize ,
2323 idleTimeoutMillis : clientConfig . poolIdleTimeout || defaults . poolIdleTimeout ,
2424 reapIntervalMillis : clientConfig . reapIntervalMillis || defaults . reapIntervalMillis ,
25+ returnToHead : clientConfig . returnToHead || defaults . returnToHead ,
2526 log : clientConfig . poolLog || defaults . poolLog ,
2627 create : function ( cb ) {
2728 var client = new pools . Client ( clientConfig ) ;
You can’t perform that action at this time.
0 commit comments