aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-05 04:31:04 +0100
committertv <tv@krebsco.de>2026-11-05 04:31:04 +0100
commit39980623f81e9e75f142f55a35794bf7a53aa38b (patch)
treee195198f2a86652ff1741047e24f58300795c06b /src/transport/mod.rs
parenta4853f232afc7903c9eff7d08663b6b0bbb9bf24 (diff)
suspect paths
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs7
1 files changed, 7 insertions, 0 deletions
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.