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:
Johnathan Corgan
2026-02-19 03:40:58 +00:00
parent 04d9fd625d
commit c5c7e68a6e
5 changed files with 53 additions and 11 deletions
+2 -1
View File
@@ -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