From 39980623f81e9e75f142f55a35794bf7a53aa38b Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 04:31:04 +0100 Subject: suspect paths --- src/transport/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index eeb9d34..474e386 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -1004,6 +1004,13 @@ pub(crate) trait Transport: Send + Sync { None } + /// What went to `peer` went unanswered for a while (`swarm::reach`): the path in use + /// may take messages and drop them. The paths layer tries the peer's other paths + /// first and pings them all now (`paths::Paths::suspect`). By default nothing. + fn suspect(&self, peer: &str) { + let _ = peer; + } + /// Whether the transport answers PINGs with PONGs itself (the paths layer, /// `transport::paths`); if not (a bare transport, in tests), the node does. By /// default not. -- cgit v1.3.1