quinn-rs / quinn

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

Fix stopped recv stream flow control underflow under reordering #1869

Closed Ralith closed 1 month ago

Ralith commented 1 month ago

Fixes #1818 (probably). Second commit isn't necessary but feels a bit tidier.

Ralith commented 1 month ago

Added a narrow unit test that thoroughly exercises the broken case.