quinn-rs / quinn

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

Add additional metrics for lost packets and bytes #1248

Closed Matthias247 closed 2 years ago

Matthias247 commented 2 years ago

These are a bit more explicit than just tracking congestion events, since a congestion event can cover multiple packets. The total amount of sent packets is now also logged, in order for applications to calculate the relative amount of packet loss. The amount of packets can be different from the amount of datagrams in case of coalesced packets.

Matthias247 commented 2 years ago

audit failure is unrelated to this PR