zebra_network::constants

Constant DEFAULT_MAX_CONNS_PER_IP

source
pub const DEFAULT_MAX_CONNS_PER_IP: usize = 1;
Expand description

The default maximum number of peer connections Zebra will keep for a given IP address before it drops any additional peer connections with that IP.

This will be used as Config.max_connections_per_ip if no valid value is provided.

Note: Zebra will currently avoid initiating outbound connections where it has recently had a successful handshake with any address on that IP. Zebra will not initiate more than 1 outbound connection to an IP based on the default configuration, but it will accept more inbound connections to an IP.