Fixed peer ping timeout (#3137)

This commit is contained in:
Arkadiy Paronyan 2016-11-03 16:12:25 +01:00 committed by Gav Wood
parent 8f4bd3590a
commit 3413989c8a
1 changed files with 2 additions and 1 deletions

View File

@ -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.