Skip to content

Don't wait for a full buffer when reading TCP #11334

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

Merged
merged 1 commit into from
Jan 6, 2014

Conversation

alexcrichton
Copy link
Member

libnative erroneously would attempt to fill the entire buffer in a call to
read before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328

libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close rust-lang#11328
bors added a commit that referenced this pull request Jan 6, 2014
libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328
@bors bors closed this Jan 6, 2014
@bors bors merged commit 11e568c into rust-lang:master Jan 6, 2014
@alexcrichton alexcrichton deleted the fix-native-tcp branch January 7, 2014 06:18
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.

redis benchmark hangs with native tasks
2 participants