Skip to content
New issue

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

Support connection reset #84

Open
vojtarylko opened this issue Nov 23, 2022 · 0 comments
Open

Support connection reset #84

vojtarylko opened this issue Nov 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@vojtarylko
Copy link

Problem
Today, there is no way how to reliably reset connection. So when connection is returned to the connection pool (or reused from the pool), there can be transaction pending, locks hold, temporary tables being present, session variables set, ...

Describe the solution you'd like
The cheap way how to reset connection is to use COM_RESET_CONNECTION utility command.

Describe alternatives you've considered
Alternatively, connection can be re-opened every time. This is prohibitively expensive. Or ROLLBACK can be issued, but that doesn't solve all the issues (e.g. session variables being set).

Context

@vojtarylko vojtarylko added the enhancement New feature or request label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant