mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-16 16:25:08 +00:00
add metric for spurious congestion events
This commit is contained in:
committed by
Benjamin Saunders
parent
e5b30f5134
commit
459c347149
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user