diff options
| author | tv <tv@krebsco.de> | 2026-11-06 05:01:44 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-06 05:01:44 +0100 |
| commit | 31378bcb137f3d43bb74604df0a9e601b07d1525 (patch) | |
| tree | 4835cd3b57b2a7e27b3875d1c82bc15cdad7ee83 /src/swarm/peer/inbound.rs | |
| parent | 9cf079423c60c15f660a14f07eb9fdcde6c9cb40 (diff) | |
heads heard in replies
Diffstat (limited to 'src/swarm/peer/inbound.rs')
| -rw-r--r-- | src/swarm/peer/inbound.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/swarm/peer/inbound.rs b/src/swarm/peer/inbound.rs index 8a424b8..8980fd3 100644 --- a/src/swarm/peer/inbound.rs +++ b/src/swarm/peer/inbound.rs @@ -235,6 +235,9 @@ pub(crate) async fn handle_message( if let Some(at) = announced { crate::swarm::relay::slow_round_answered(state, at.elapsed()); } + // Keepalives go one way between a pair (the one with the shorter interval + // takes the turns): the other side hears the peer's heads in its replies. + heard_heads(state, &peer, &remote); on_status(state, &peer, &remote, reactivated).await; } transport::ParsedMessage::Links(request) => { |
