-
Notifications
You must be signed in to change notification settings - Fork 59
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
The pool returns an invalid connection after client idle for a while #165
Comments
Just reproduce it, here's the exception log.
|
Do we have any fix on this, pro? |
Hi, any news about this issue? |
+1 |
you should use the Vertx SQL client instead of this client that is fully supported by the team. We will continue to accept PR for this project and review them though. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using vertx-mysql-postgresql-client version 3.8.3.
My client works fine in the beginning. But when the client keeps idle for a while, I obtain an invalid connection from the client.
AIK, Mysql server will close those long idle connections by force. So I guess the client returned a cached connection which is actually invalid since it was already reset by the server. Any query on that connection will raise an exception. Just try
getConnection
again, a new connection is returned successfully.Is there any built-in tech to overcome this issue? or, should I handle such exeception on my own?
I post my conf and code below. Did I miss something?
I configured my client as below:
and query data like this:
The text was updated successfully, but these errors were encountered: