Skip to content

Commit

Permalink
refactor(timeout): increase time period for idle-timeout and keep-alive
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-faber authored and joshuef committed Jun 24, 2021
1 parent 3c712b4 commit d549865
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 d549865

Please sign in to comment.