Skip to content

Commit

Permalink
Reduce ping interval (#2132)
Browse files Browse the repository at this point in the history
## Issue Addressed

#2123

## Description

Reduces the TCP ping interval to increase our responsiveness to peer liveness changes.
  • Loading branch information
AgeManning committed Jan 6, 2021
1 parent 043e5cb commit 29eaeff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon_node/eth2_libp2p/src/peer_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 29eaeff

Please sign in to comment.