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

Borrow self in read_to_end, rather than consuming #1502

Merged
merged 2 commits into from
Mar 5, 2023
Merged

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Mar 1, 2023

Allows RecvStream::stop to be called with custom error codes if ReadToEndError::TooLong is encountered.

See also discussion in #1493.

Allows `RecvStream::stop` to be called with custom error codes if
`ReadToEndError::TooLong` is encountered.
djc
djc previously approved these changes Mar 1, 2023
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Should we bump the version number proactively for this semver-incompatible change?

@Ralith
Copy link
Collaborator Author

Ralith commented Mar 2, 2023

No strong feelings; is that the process you'd like to standardize on?

@djc
Copy link
Member

djc commented Mar 2, 2023

My experience is that it's less error-prone, because going back and determining at release time whether there were semver-incompatible changes is a PITA.

@djc djc merged commit 7424372 into main Mar 5, 2023
@djc djc deleted the read-to-end-borrow branch March 5, 2023 07:52
@djc djc mentioned this pull request May 8, 2023
3 tasks
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.

2 participants