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

ConnectionString.idleTimeout not working as intended #2

Closed
a-vezzoli-02 opened this issue May 31, 2022 · 0 comments · Fixed by #6
Closed

ConnectionString.idleTimeout not working as intended #2

a-vezzoli-02 opened this issue May 31, 2022 · 0 comments · Fixed by #6
Assignees
Labels
bug Something isn't working
Milestone

Comments

@a-vezzoli-02
Copy link
Member

Describe the bug
The idleTimeout property of the ConnectionSettings does not change the actual idle time of the connection.

To Reproduce
Steps to reproduce the behavior:

  1. Use a ConnectionSetting instance with a short idleTimeout;
  2. Request a connection from RacoonDen and release it;
  3. Wait for the defined `idleTimeout.

Expected behavior
The ping test while requesting the next connection, should be negative, but its positive (it depends on the configuration of the Database itself)

Screenshots
No.

Version

  • MySQL: Any
  • Racoon: Latest branch

Additional context
A series of queries should be used instead of the idleTimeout URL parameter: https://dba.stackexchange.com/a/174640

@a-vezzoli-02 a-vezzoli-02 added the bug Something isn't working label May 31, 2022
@a-vezzoli-02 a-vezzoli-02 self-assigned this May 31, 2022
@a-vezzoli-02 a-vezzoli-02 added this to the Fixes and tests milestone May 31, 2022
@a-vezzoli-02 a-vezzoli-02 linked a pull request Jun 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant