Skip to content

Close SocketChannel upon exceptions to avoid leaking#10110

Merged
normanmaurer merged 3 commits into
netty:4.1from
blindpirate:fix-file-handle-leaking
Mar 16, 2020
Merged

Close SocketChannel upon exceptions to avoid leaking#10110
normanmaurer merged 3 commits into
netty:4.1from
blindpirate:fix-file-handle-leaking

Conversation

@blindpirate
Copy link
Copy Markdown
Contributor

This fixes #10109
by correctly closing the channel upon exceptions.

Fixes #10109

This fixes netty#10109
by correctly closing the channel upon exceptions.
@netty-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@normanmaurer
Copy link
Copy Markdown
Member

@blindpirate please sign our ICLA and let me know once done:

https://netty.io/s/icla

@normanmaurer normanmaurer added this to the 4.1.48.Final milestone Mar 16, 2020
@blindpirate
Copy link
Copy Markdown
Contributor Author

Done. @normanmaurer

@normanmaurer
Copy link
Copy Markdown
Member

@netty-bot test this please

Comment thread transport/src/main/java/io/netty/bootstrap/Bootstrap.java
@normanmaurer
Copy link
Copy Markdown
Member

@blindpirate I just pushed a commit with the changes and a test case... PTAL

Copy link
Copy Markdown
Contributor Author

@blindpirate blindpirate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, I'm not familiar with the test, but you did it great.

@normanmaurer
Copy link
Copy Markdown
Member

@netty-bot test this please

@blindpirate
Copy link
Copy Markdown
Contributor Author

@normanmaurer out of curiosity, is "test this please" is a fixed command for @netty-bot ? Can I ask him to test by "can you please test this change"? Is that bot opensource?

@normanmaurer
Copy link
Copy Markdown
Member

@blindpirate it can only be done by admins so we ensure no-one DDOS it. It is a Jenkins plugin.

@blindpirate
Copy link
Copy Markdown
Contributor Author

Good to know, thanks!

@normanmaurer normanmaurer merged commit 286f14f into netty:4.1 Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected exception in Bootstrap.doResolveAndConnect0 leaks SocketChannel

3 participants