Close all pool connection after timeout
Hi,
What is the correct way to obtain this behaviour: Have a pool with max 10 connection, use all connection when needed, after a certain amount of time close all unused connections.
I try:
```javascript
{
minimumIdle: 0
}
```
This break the `getConnection` function, with this conf the pool just stop to give connections.
```javascript
{
minimumIdle: undefined,
idleTimeout: 50
}
```
The `idleTimeout` is just ignored and all connections of the pool remain available for ever.
So what is the correct way have my desired behaviour ?
1 条评论