Constant zebra_network::constants::MAX_RECENT_PEER_AGE

source ·
pub const MAX_RECENT_PEER_AGE: Duration32;
Expand description

The maximum duration since a peer was last seen to consider reconnecting to it.

Peers that haven’t been seen for more than three days and that had its last connection attempt fail are considered to be offline and Zebra will stop trying to connect to them.

This is to ensure that Zebra can’t have a denial-of-service as a consequence of having too many offline peers that it constantly and uselessly retries to connect to.