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

Fixed #4796: IO::Buffered returned short buffer prematurely #4797

Closed
wants to merge 1 commit into from

Conversation

pacuum
Copy link

@pacuum pacuum commented Aug 5, 2017

Fixed #4796

I fixed problem just by iterating
when the remaining buffer size is smaller than requested size.

@pacuum
Copy link
Author

pacuum commented Aug 5, 2017

oh it broke another test... the broken test expects IO::Buffered not to block when there is not enough data in the buffer. I agree this non-blocking behavior is suitable for users' input. But I think it is not suitable for TCP socket. Don't we have another implementation?

@pacuum pacuum closed this Aug 5, 2017
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.

IO::Buffered stop reading reading prematurely
1 participant