-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
SslHandler handlerRemoved0 method doesn't always release the SSLEngine #11595
Comments
hunter2046
changed the title
SslHandler handlerRemoved0 method doesn
SslHandler handlerRemoved0 method doesn't always release the SSLEngine
Aug 18, 2021
Putting the |
Thanks for checking. I will find some time this week to get a PR out. |
hunter2046
pushed a commit
to hunter2046/netty
that referenced
this issue
Aug 19, 2021
Motivation: Make SslHandler's handlerRemoved0 method release the sslEngine even if it fails in the middle. See details in netty#11595. Modifications: Wrap the release of sslEngine into a finally block. Result: The sslEngine would be released eventually.
normanmaurer
pushed a commit
that referenced
this issue
Aug 20, 2021
) Motivation: Make SslHandler's handlerRemoved0 method release the sslEngine even if it fails in the middle. See details in #11595. Modifications: Wrap the release of sslEngine into a finally block. Result: The sslEngine would be released eventually. Co-authored-by: Chen Liu <cliu@splunk.com>
normanmaurer
pushed a commit
that referenced
this issue
Aug 20, 2021
) Motivation: Make SslHandler's handlerRemoved0 method release the sslEngine even if it fails in the middle. See details in #11595. Modifications: Wrap the release of sslEngine into a finally block. Result: The sslEngine would be released eventually. Co-authored-by: Chen Liu <cliu@splunk.com>
PR has been merged - closing this issue |
laosijikaichele
pushed a commit
to laosijikaichele/netty
that referenced
this issue
Dec 16, 2021
…ty#11605) Motivation: Make SslHandler's handlerRemoved0 method release the sslEngine even if it fails in the middle. See details in netty#11595. Modifications: Wrap the release of sslEngine into a finally block. Result: The sslEngine would be released eventually. Co-authored-by: Chen Liu <cliu@splunk.com>
laosijikaichele
pushed a commit
to laosijikaichele/netty
that referenced
this issue
Dec 16, 2021
…ty#11605) Motivation: Make SslHandler's handlerRemoved0 method release the sslEngine even if it fails in the middle. See details in netty#11595. Modifications: Wrap the release of sslEngine into a finally block. Result: The sslEngine would be released eventually. Co-authored-by: Chen Liu <cliu@splunk.com>
raidyue
pushed a commit
to raidyue/netty
that referenced
this issue
Jul 8, 2022
…ty#11605) Motivation: Make SslHandler's handlerRemoved0 method release the sslEngine even if it fails in the middle. See details in netty#11595. Modifications: Wrap the release of sslEngine into a finally block. Result: The sslEngine would be released eventually. Co-authored-by: Chen Liu <cliu@splunk.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
When
ReferenceCountedOpenSslEngine
is used the SslHandler'shandlerRemoved0
method should release the SSLEngineActual behavior
When
ReferenceCountedOpenSslEngine
is used the SslHandler'shandlerRemoved0
method doesn't release the SSLEngine if it fails in the middleSteps to reproduce
handlerRemoved0
for more logging and catching potential throwables:This indicates that the sslEngine did not get released. Does it make sense to put it in a final block to ensure it is released?
Minimal yet complete reproducer code (or URL to code)
I don't have a running reproducer. The above code should describe the problem clearly though.
Netty version
4.1.67.Final
JVM version (e.g.
java -version
)OS version (e.g.
uname -a
)The text was updated successfully, but these errors were encountered: