Skip to content

Close socket when bind or connect fails#6531

Merged
headius merged 1 commit intojruby:jruby-9.2from
headius:fix_unixsocket_leak
Jan 13, 2021
Merged

Close socket when bind or connect fails#6531
headius merged 1 commit intojruby:jruby-9.2from
headius:fix_unixsocket_leak

Conversation

@headius
Copy link
Member

@headius headius commented Jan 13, 2021

We open the socket before we bind or connect, and must clean up
if there is a subsequent error.

Fixes #6529.

@headius headius added this to the JRuby 9.2.15.0 milestone Jan 13, 2021
We open the socket before we bind or connect, and must clean up
if there is a subsequent error.

Fixes jruby#6529.
@headius headius force-pushed the fix_unixsocket_leak branch from da6c528 to fc46dd9 Compare January 13, 2021 17:04
@headius headius merged commit e3404e8 into jruby:jruby-9.2 Jan 13, 2021
@headius headius deleted the fix_unixsocket_leak branch January 13, 2021 17:25
@headius headius linked an issue Jan 13, 2021 that may be closed by this pull request
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.

FD leak with orphan Unix Socket

1 participant