Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
2 changes: 2 additions & 0 deletions quinn-proto/src/connection/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down