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

AsyncConnection: Fix potential race condition #7453

Merged
merged 3 commits into from Feb 4, 2016
Merged

AsyncConnection: Fix potential race condition #7453

merged 3 commits into from Feb 4, 2016

Conversation

yuyuyu101
Copy link
Member

No description provided.

Signed-off-by: Haomai Wang <haomai@xsky.com>
1. thread 1 call AsyncConnection::accept and create file event
2. the owner thread of connection is waked from file event
3. then this connection is closed soon
4. thread 1 dispatch reader event
5. the owner thread will crash because of a closed connection

Fix #14566
Signed-off-by: Haomai Wang <haomai@xsky.com>
Signed-off-by: Haomai Wang <haomai@xsky.com>
@yuyuyu101
Copy link
Member Author

liewegas added a commit that referenced this pull request Feb 4, 2016
msg/async: fix potential race condition
@liewegas liewegas merged commit 0e42ee9 into master Feb 4, 2016
@liewegas liewegas deleted the wip-14566 branch February 4, 2016 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants