-
Notifications
You must be signed in to change notification settings - Fork 646
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
Fix memory leak of HTTP server on bind failure #2844
Fix memory leak of HTTP server on bind failure #2844
Conversation
@SgtSilvio Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@SgtSilvio Thank you for signing the Contributor License Agreement! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Can you provide a test?
reactor-netty-core/src/main/java/reactor/netty/transport/TransportConnector.java
Outdated
Show resolved
Hide resolved
Good point. |
May be we can limit the test to checking channel is opened or not? |
May be something like this below:
|
Do you think this will help for the test? |
I will still provide a test, but |
ouch correct ... Then try directly to test Something like
|
Thanks, now added a test that fails without and succeeds with the changes. |
reactor-netty-core/src/test/java/reactor/netty/transport/TransportConnectorTest.java
Show resolved
Hide resolved
Can you update also
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reactor/netty-team PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SgtSilvio , nice !
+1
Thanks for the very quick handling! |
Fixes #2843 by closing channel on bind (and other) exception
Fix issue #2843 by closing channel on bind (and other) exception