不要怂,就是干,撸起袖子干!

Commit eff8fb56 by Andrii Muzalevskyi Committed by Sushant

feat(pooling): reuse connections with returnToHead (#8567)

1 parent c411a9d4
Showing with 3 additions and 0 deletions
...@@ -118,6 +118,7 @@ class ConnectionManager { ...@@ -118,6 +118,7 @@ class ConnectionManager {
}, { }, {
Promise: config.pool.Promise, Promise: config.pool.Promise,
testOnBorrow: true, testOnBorrow: true,
returnToHead: true,
autostart: false, autostart: false,
max: config.pool.max, max: config.pool.max,
min: config.pool.min, min: config.pool.min,
...@@ -199,6 +200,7 @@ class ConnectionManager { ...@@ -199,6 +200,7 @@ class ConnectionManager {
}, { }, {
Promise: config.pool.Promise, Promise: config.pool.Promise,
testOnBorrow: true, testOnBorrow: true,
returnToHead: true,
autostart: false, autostart: false,
max: config.pool.max, max: config.pool.max,
min: config.pool.min, min: config.pool.min,
...@@ -220,6 +222,7 @@ class ConnectionManager { ...@@ -220,6 +222,7 @@ class ConnectionManager {
}, { }, {
Promise: config.pool.Promise, Promise: config.pool.Promise,
testOnBorrow: true, testOnBorrow: true,
returnToHead: true,
autostart: false, autostart: false,
max: config.pool.max, max: config.pool.max,
min: config.pool.min, min: config.pool.min,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!