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: never claim to read more than read #12

Merged
merged 1 commit into from
Apr 20, 2019
Merged

Conversation

Stebalien
Copy link
Member

Not sure if this is the right thing to do but it's better than reporting the
wrong length.

Not sure if this is the _right_ thing to do but it's better than reporting the
wrong length.
@ghost ghost assigned Stebalien Apr 19, 2019
@ghost ghost added the status/in-progress In progress label Apr 19, 2019
Copy link
Contributor

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the right thing to do according to the documentation of io.Reader.

@Stebalien
Copy link
Member Author

It is the right thing to do according to the documentation of...

For io.Reader, yes. However, this is a message reader so it might split messages. However, it's better than what we currently have.

@Stebalien Stebalien merged commit b47fa43 into master Apr 20, 2019
@Stebalien Stebalien deleted the fix/read-partial branch April 20, 2019 20:09
@ghost ghost removed the status/in-progress In progress label Apr 20, 2019
@vyzo
Copy link

vyzo commented Apr 21, 2019

we might want to bubble this up in gomod.

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.

3 participants