Skip to content

Commit

Permalink
Merge 591c971 into 3c712b4
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-faber committed Jun 24, 2021
2 parents 3c712b4 + 591c971 commit bcd217d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peer_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ use std::{sync::Arc, time::Duration};
/// see no conversation between them.
///
/// The value is in milliseconds.
pub const DEFAULT_IDLE_TIMEOUT_MSEC: u64 = 30_000; // 30secs
pub const DEFAULT_IDLE_TIMEOUT_MSEC: u64 = 60_000; // 60secs
/// Default Interval to send keep-alives if we are idling so that the peer does not disconnect from
/// us declaring us offline. If none is supplied we'll default to the documented constant.
///
/// The value is in milliseconds.
pub const DEFAULT_KEEP_ALIVE_INTERVAL_MSEC: u32 = 10_000; // 10secs
pub const DEFAULT_KEEP_ALIVE_INTERVAL_MSEC: u32 = 20_000; // 20secs

pub fn new_client_cfg(
idle_timeout_msec: u64,
Expand Down

0 comments on commit bcd217d

Please sign in to comment.