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 a race of onRead couting #671

Merged
merged 1 commit into from
May 6, 2016
Merged

Fix a race of onRead couting #671

merged 1 commit into from
May 6, 2016

Conversation

iamqizhao
Copy link
Contributor

This fixes a race condition that the connection pendingData could be deducted twice if there is a concurrent resetPendingData call (in closeStream).

fixes #670 (need verify)

trying to add a test.

@tamird
Copy link
Contributor

tamird commented May 6, 2016

Yikes, no test?

@iamqizhao
Copy link
Contributor Author

I am writing the test but currently have difficulty to reproduce the issue. I will keep working on that. checked this in now because I will take the next a couple of days off (not sure I can finish it today before I leave). Can you guys help verify whether it fixes the issue?

@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apparent integer underflow in transport.(*inFlow).onRead
3 participants