Skip to content

Commit

Permalink
exposes current path MTU discovered in connection stats
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri authored and djc committed Aug 15, 2024
1 parent c0b1e28 commit 5e0d96b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ impl Connection {
let mut stats = self.stats;
stats.path.rtt = self.path.rtt.get();
stats.path.cwnd = self.path.congestion.window();
stats.path.current_mtu = self.path.mtud.current_mtu();

stats
}
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 @@ -152,6 +152,8 @@ pub struct PathStats {
pub lost_plpmtud_probes: u64,
/// The number of times a black hole was detected in the path
pub black_holes_detected: u64,
/// Largest UDP payload size the path currently supports
pub current_mtu: u16,
}

/// Connection statistics
Expand Down

0 comments on commit 5e0d96b

Please sign in to comment.