Skip to content

Fix deadlock when failing to bind/listen on port #149

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nikitalita
Copy link
Contributor

Socket deadlocks when failing to bind to a port, due to reset() (which calls the Shared destructor, which calls its lock) being called while we hold the lock (it would have segfaulted anyway even if this wasn't the case, since the destructor would have been called while we were in the middle of a member call stack). Calling reset() while outside of the lock fixes this.

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.

1 participant