Reduce ping interval (#2132)

## Issue Addressed

#2123

## Description

Reduces the TCP ping interval to increase our responsiveness to peer liveness changes.
This commit is contained in:
Age Manning 2021-01-06 04:35:52 +00:00
parent c2eac8e5bd
commit 7e4b190df0

View File

@ -43,9 +43,9 @@ const STATUS_INTERVAL: u64 = 300;
/// within this time frame (Seconds) /// within this time frame (Seconds)
/// This is asymmetric to avoid simultaneous pings. /// This is asymmetric to avoid simultaneous pings.
/// The interval for outbound connections. /// The interval for outbound connections.
const PING_INTERVAL_OUTBOUND: u64 = 30; const PING_INTERVAL_OUTBOUND: u64 = 15;
/// The interval for inbound connections. /// 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 /// The heartbeat performs regular updates such as updating reputations and performing discovery
/// requests. This defines the interval in seconds. /// requests. This defines the interval in seconds.