mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-11 09:07:44 +00:00
Session idle timeout now based on application data only
MMP reports (SenderReport, ReceiverReport, PathMtuNotification) were resetting the idle timer on both RX and TX paths, preventing sessions from ever timing out when MMP traffic kept flowing. Changed touch() to only be called for DataPacket send/receive and session establishment, so sessions with no application data tear down after the idle timeout even with active MMP measurement traffic.
This commit is contained in:
+2
-1
@@ -224,7 +224,8 @@ pub struct SessionConfig {
|
||||
#[serde(default = "SessionConfig::default_pending_max_destinations")]
|
||||
pub pending_max_destinations: usize,
|
||||
/// Idle session timeout in seconds (`node.session.idle_timeout_secs`).
|
||||
/// Established sessions with no activity for this duration are removed.
|
||||
/// Established sessions with no application data for this duration are
|
||||
/// removed. MMP reports do not count as activity for this timer.
|
||||
#[serde(default = "SessionConfig::default_idle_timeout_secs")]
|
||||
pub idle_timeout_secs: u64,
|
||||
/// Number of initial data packets per session that include COORDS_PRESENT
|
||||
|
||||
Reference in New Issue
Block a user