From 7e4b190df0172f2030960e29681aa49a8644d8de Mon Sep 17 00:00:00 2001 From: Age Manning Date: Wed, 6 Jan 2021 04:35:52 +0000 Subject: [PATCH] Reduce ping interval (#2132) ## Issue Addressed #2123 ## Description Reduces the TCP ping interval to increase our responsiveness to peer liveness changes. --- beacon_node/eth2_libp2p/src/peer_manager/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/eth2_libp2p/src/peer_manager/mod.rs b/beacon_node/eth2_libp2p/src/peer_manager/mod.rs index cc5e9d87ba..6263d3ad0c 100644 --- a/beacon_node/eth2_libp2p/src/peer_manager/mod.rs +++ b/beacon_node/eth2_libp2p/src/peer_manager/mod.rs @@ -43,9 +43,9 @@ const STATUS_INTERVAL: u64 = 300; /// within this time frame (Seconds) /// This is asymmetric to avoid simultaneous pings. /// The interval for outbound connections. -const PING_INTERVAL_OUTBOUND: u64 = 30; +const PING_INTERVAL_OUTBOUND: u64 = 15; /// The interval for inbound connections. -const PING_INTERVAL_INBOUND: u64 = 35; +const PING_INTERVAL_INBOUND: u64 = 20; /// The heartbeat performs regular updates such as updating reputations and performing discovery /// requests. This defines the interval in seconds.