You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pool connection never destroy after idle milliseconds #7882
constSequelize=require('sequelize');constsequelize=newSequelize($mysqlUri,{pool: {max: 5,min: 0,idle: 10000}})sequelize.authenticate().then(()=>{console.log('Connection has been established successfully.');}).catch(err=>{console.error('Unable to connect to the database:',err);});
What do you expect to happen?
pool connection should be destroyed after idle(10000 milliseconds)
What is actually happening?
pool connection hadn't destroyed after idle(10000 milliseconds)
Dialect: mysql
__Database version:
__Sequelize version:4.2.1
ps
I had found a option evictionRunIntervalMillis in generic-pool evictionRunIntervalMillis: How often to run eviction checks. Default: 0 (does not run).
sequelize options need add this option to control idle connection destroy
Activity
v0y4g3r commentedon Jul 10, 2017
Plz check if my pull request fixed you problem
swordfish444 commentedon Jul 10, 2017
@RayneHwang Please see the comments on your PR. Once you've resolved the formatting error, lets get this tested and scheduled for release.
sushantdhiman commentedon Aug 10, 2017
#7924