Skip to content
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

UNIX FD leaks #162

Open
gollux opened this issue Jun 4, 2024 · 1 comment
Open

UNIX FD leaks #162

gollux opened this issue Jun 4, 2024 · 1 comment

Comments

@gollux
Copy link

gollux commented Jun 4, 2024

When negotiate_unix_fds is enabled on the MessageBus, the library starts leaking file descriptors.

This happens for example when an unhandled message is received, or if the message is handled by any of the builtin handlers which are not aware of file descriptor passing. The only way to avoid the leaks seems to be installing a custom message handler, which handles messages that need file descriptors, and close all file descriptors in message.unix_fds otherwise, so that they never get to the default handlers.

@elParaguayo
Copy link
Contributor

I think I'm running in to this too.

Could you share your custom handler for closing these?

FYI this project seems to be unmaintained so I suspect this won't get picked up.

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

No branches or pull requests

2 participants