From d11af7db05e80dce94cd852a03c721fb0e3c978c Mon Sep 17 00:00:00 2001 From: OlivierHecart Date: Tue, 23 Apr 2024 16:09:58 +0200 Subject: [PATCH] Increase scouting delay and decrease api open delay --- commons/zenoh-config/src/defaults.rs | 2 +- zenoh/src/session.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commons/zenoh-config/src/defaults.rs b/commons/zenoh-config/src/defaults.rs index 865da7b5ba..138d00bf85 100644 --- a/commons/zenoh-config/src/defaults.rs +++ b/commons/zenoh-config/src/defaults.rs @@ -36,7 +36,7 @@ pub const mode: WhatAmI = WhatAmI::Peer; #[allow(dead_code)] pub mod scouting { pub const timeout: u64 = 3000; - pub const delay: u64 = 200; + pub const delay: u64 = 500; pub mod multicast { pub const enabled: bool = true; pub const address: ([u8; 4], u16) = ([224, 0, 0, 224], 7446); diff --git a/zenoh/src/session.rs b/zenoh/src/session.rs index 075e9d0df4..b687d6af61 100644 --- a/zenoh/src/session.rs +++ b/zenoh/src/session.rs @@ -96,7 +96,7 @@ zconfigurable! { pub(crate) static ref API_QUERY_RECEPTION_CHANNEL_SIZE: usize = 256; pub(crate) static ref API_REPLY_EMISSION_CHANNEL_SIZE: usize = 256; pub(crate) static ref API_REPLY_RECEPTION_CHANNEL_SIZE: usize = 256; - pub(crate) static ref API_OPEN_SESSION_DELAY: u64 = 500; + pub(crate) static ref API_OPEN_SESSION_DELAY: u64 = 200; } pub(crate) struct SessionState {