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

Implement Drop for ConnectedAdapter to clean up open sockets #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jslater89
Copy link

This change stops rumble from leaking file descriptors when ConnectedAdapters go out of scope.

@jslater89
Copy link
Author

On reflection, this might need some further work to indicate that a clone of ConnectedAdapter (e.g. to be moved into a closure or a different thread) shouldn't necessarily close the underlying socket.

Not a super-satisfying fix, but a fix.
@jslater89
Copy link
Author

The second commit in this PR fixes the issue in my comment earlier, but not in a very satisfying way. I'm relatively new at Rust and happy to take suggestions.

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