Fixed peer ping timeout (#3137)
This commit is contained in:
parent
8f4bd3590a
commit
3413989c8a
@ -32,7 +32,8 @@ use node_table::NodeId;
|
||||
use stats::NetworkStats;
|
||||
use time;
|
||||
|
||||
const PING_TIMEOUT_SEC: u64 = 65;
|
||||
// Timeout must be less than (interval - 1).
|
||||
const PING_TIMEOUT_SEC: u64 = 15;
|
||||
const PING_INTERVAL_SEC: u64 = 30;
|
||||
|
||||
/// Peer session over encrypted connection.
|
||||
|
Loading…
Reference in New Issue
Block a user