quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.57k stars 364 forks source link

Fix bytes read count in ReadExactError::FinishedEarly #1875

Closed Ralith closed 1 month ago

Ralith commented 1 month ago

This was counting the number of bytes read in the current poll invocation, rather than the lifetime of the future.

Fixes #1861 CC @rom1v