quinn-rs / quinn

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

how to obtain the num of lost packet in congestion controller #1732

Closed eauxxs closed 10 months ago

eauxxs commented 10 months ago

Can only lost_bytes be obtained?

Ralith commented 10 months ago

That's not currently exposed to congestion controllers (though a running total is exposed to applications via ConnectionStats), but if you have a compelling use case you could add it pretty easily by passing lost_packets.len() down in Connection::detect_lost_packets.

Ralith commented 10 months ago

Closing for lack of response. Feel free to reopen if further discussion is required.