add metric for spurious congestion events

This commit is contained in:
Fabien SAVY
2026-02-27 15:02:09 +01:00
committed by Benjamin Saunders
parent e5b30f5134
commit 459c347149
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1456,6 +1456,7 @@ impl Connection {
};
if self.detect_spurious_loss(&ack, space) {
self.stats.path.spurious_congestion_events += 1;
self.path.congestion.on_spurious_congestion_event();
}
+2
View File
@@ -140,6 +140,8 @@ pub struct PathStats {
pub cwnd: u64,
/// Congestion events on the connection
pub congestion_events: u64,
/// Spurious congestion events on the connection
pub spurious_congestion_events: u64,
/// The amount of packets lost on this path
pub lost_packets: u64,
/// The amount of bytes lost on this path