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

fix UDP port remaining open after supervisor terminates when a hook is still executing #7597

Merged
merged 2 commits into from
Apr 3, 2020

Conversation

mwrock
Copy link
Contributor

@mwrock mwrock commented Apr 2, 2020

This fixes #7590.

There is a bug which surfaced in rust 1.38 where cloned sockets on windows get inherited by child processes and remain open even after the process that created the socket terminates as long as the child processes remain alive. Until this is fixed, we explicitly clear the HANDLE_FLAG_INHERIT of the socket's handle.

Copy link
Contributor

@davidMcneil davidMcneil left a comment

Choose a reason for hiding this comment

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

Man, what a great debugging effort! I am very interested to see comes of the rust issue.

@mwrock mwrock merged commit a3573bf into master Apr 3, 2020
@mwrock mwrock deleted the socket branch April 3, 2020 17:31
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.

Orphaned and hanging init hook prevents supervisor from starting
2 participants