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

Pass byte read count to FinishEarly #1666

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Conversation

rom1v
Copy link
Contributor

@rom1v rom1v commented Sep 20, 2023

If read_exact() finishes early (end of stream), report the number of bytes actually read.

(note: this breaks the API)

Fixes #1663

If read_exact() finishes early (end of stream), report the number of
bytes actually read.

Fixes quinn-rs#1663
@djc
Copy link
Collaborator

djc commented Sep 20, 2023

Thanks!

@Ralith Ralith merged commit e5bf98c into quinn-rs:main Sep 20, 2023
8 checks passed
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.

RecvStream::read_exact() API insufficient
3 participants