Skip to content

Conversation

@zachs18
Copy link

@zachs18 zachs18 commented May 28, 2025

std::io::Read::read may not read all available data, and will return immediately if some data is available (and will not wait for EOF). Read::read_to_end will read all data, and will wait for EOF.

Found by https://github.com/craterbot at rust-lang/rust#140985 (comment)

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.

1 participant