quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.76k stars 380 forks source link

Fix stopped streams not issuing ID credit when reset #1422

Closed Ralith closed 1 year ago

Ralith commented 1 year ago

Fixes https://github.com/quinn-rs/quinn/issues/1421.

Similar to existing logic handling finishing of a stopped stream in StreamsState::received. The missing credit would be issued if a stream is later closed through a different code path, but there is no guarantee that would happen.