We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea is to destroy a connection from a pool once it has stayed connected for a specified duration of time.
destroy
connection
release
Ref: mysqljs/mysql#1872 (API to destroy) https://github.com/mysqljs/mysql#pool-events (Pool Events) https://github.com/postmanlabs/sails-mysql-transactions/blob/develop/lib/db.js (module where the read-only pool cluster is created) https://github.com/postmanlabs/sails-mysql/tree/master-postman/lib/connections (location where writeable pools are created)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The idea is to
destroy
a connection from a pool once it has stayed connected for a specified duration of time.connection
event in pool and set the current time in itrelease
event of pool and check if current time is - created time is > lifetime option.Ref:
mysqljs/mysql#1872 (API to destroy)
https://github.com/mysqljs/mysql#pool-events (Pool Events)
https://github.com/postmanlabs/sails-mysql-transactions/blob/develop/lib/db.js (module where the read-only pool cluster is created)
https://github.com/postmanlabs/sails-mysql/tree/master-postman/lib/connections (location where writeable pools are created)
The text was updated successfully, but these errors were encountered: