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 deadlock between on_writable and close #2165

Merged
merged 2 commits into from
Nov 8, 2018

Conversation

repeatedly
Copy link
Member

@repeatedly repeatedly commented Nov 5, 2018

TLSServer acquires lock in on_writable and on_write_complete callback is called inside its lock via cool.io.
To avoid this problem, callback order is moved to after cool.io's on_writable.

This patch includes out_forward tiny change to show the destination.

@repeatedly repeatedly self-assigned this Nov 5, 2018
@repeatedly repeatedly added the v1 label Nov 5, 2018
@repeatedly repeatedly changed the title Fix deadlock between writable and close Fix deadlock between on_writable and close Nov 6, 2018
Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

@dpgaspar
Copy link

dpgaspar commented Nov 6, 2018

I've tested it and it works! Thank you.

@repeatedly repeatedly merged commit f2e3a30 into master Nov 8, 2018
@repeatedly repeatedly deleted the fix-deadlock-between-writable-and-close branch November 8, 2018 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants