FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[fix] TCPServer#initialize: close channel on bind/init failure by kares · Pull Request #9364 · jruby/jruby · GitHub

/ jruby Public

[fix] TCPServer#initialize: close channel on bind/init failure - #9364

Merged
headius merged 1 commit into
jruby:jruby-10.0from
kares:tcp-server_close
Apr 6, 2026
Merged

[fix] TCPServer#initialize: close channel on bind/init failure#9364
headius merged 1 commit into
jruby:jruby-10.0from
kares:tcp-server_close

Conversation

kares commented Apr 5, 2026

Copy link
Copy Markdown
Member

noticed during some (heavy JOSSL) TCPServer testing that the native channel wasn't being always closed.

ServerSocketChannel.open() was called without cleanup on error paths;
if bind() or initSocket() threw, the channel was leaked along with its
native file descriptor

headius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good to me.

headius added this to the JRuby 10.0.5.0 milestone Apr 6, 2026
headius merged commit 99ed08a into jruby:jruby-10.0 Apr 6, 2026
107 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL