mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Remove Stale connections that have not been used for idletimeout.

Open aankur opened this issue 7 years ago • 3 comments

#962 Add ability to remove connections from the pool which have been stale for idletimeout period in milliseconds

aankur avatar Jun 06 '17 13:06 aankur

Might be a good idea to change the following shift to pop to prevent the pool from cycling through the connections keeping em all alive.

https://github.com/mysqljs/mysql/blob/master/lib/Pool.js#L37

4ver avatar Jun 20 '17 15:06 4ver

Any more movement on this? Our instances are hogging connections for too long and it'd be great to be able to close out those idle connections.

adriancooney avatar Aug 29 '17 16:08 adriancooney

duplicate of https://github.com/mysqljs/mysql/pull/2218

akleiber avatar Mar 19 '20 21:03 akleiber