Lower max handshakes to reduce network load

This commit is contained in:
arkpar 2016-02-16 23:37:24 +01:00
parent 7e0dfb41d0
commit b6ccbdb694

View File

@ -46,8 +46,8 @@ type Slab<T> = ::slab::Slab<T, usize>;
const _DEFAULT_PORT: u16 = 30304; const _DEFAULT_PORT: u16 = 30304;
const MAX_SESSIONS: usize = 1024; const MAX_SESSIONS: usize = 1024;
const MAX_HANDSHAKES: usize = 256; const MAX_HANDSHAKES: usize = 64;
const MAX_HANDSHAKES_PER_ROUND: usize = 64; const MAX_HANDSHAKES_PER_ROUND: usize = 8;
const MAINTENANCE_TIMEOUT: u64 = 1000; const MAINTENANCE_TIMEOUT: u64 = 1000;
#[derive(Debug)] #[derive(Debug)]