quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.85k stars 394 forks source link

Pass byte read count to FinishEarly #1666

Closed rom1v closed 1 year ago

rom1v commented 1 year ago

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

(note: this breaks the API)

Fixes #1663

djc commented 1 year ago

Thanks!