-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
connectionProvider.release() doesn't really discard the connection after connection invalidated. #3067
Comments
somebody help |
Care to elaborate what invalid means for you? In which state is the connection? |
async().discard() not invoked because channel invalid means
Maybe this is a way to go, I just assumed that since |
One idea could be introducing a validation function or a depth of validation. For this to work, the Lettuce driver would need to introduce a |
Inside validateConnection, called
resetConnection()
, and then called release(), but the action ofrelease()
does not necessarily discard the connection.So,
getNativeConnection()
probably get a same channel(TCP) which is invalid.We've actually tested this, and the result is that still get the same tcp connection after resetConnection many times.
The text was updated successfully, but these errors were encountered: