mysqljs / mysql

A pure node.js JavaScript Client implementing the MySQL protocol.
MIT License
18.22k stars 2.53k forks source link

release idle connections after timeout #2507

Open qingyang-id opened 2 years ago

qingyang-id commented 2 years ago

Hello, I add maxIdle and idleTimeout to pool options, making it supports automatically released the idle connections after timeout. I think this feature is very useful, hope you merge and release a new mysql version in the near future. If you have any questions, some feedback would be appreciated.