From 77b32836f86c8b3f7c7e1ab276d31c622b5386a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juozapas=20Bo=C4=8Dkus?= Date: Tue, 29 Oct 2024 11:51:00 +0200 Subject: [PATCH 1/2] Increase network monitor broadcast channel capacity Network monitor keeps reporting errors that the broadcast channel lagged and thus events are being missed. Since the channel's capacity was only 2, increased it to 10. --- crates/telio-network-monitors/src/monitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/telio-network-monitors/src/monitor.rs b/crates/telio-network-monitors/src/monitor.rs index 285e42c61..c54513569 100644 --- a/crates/telio-network-monitors/src/monitor.rs +++ b/crates/telio-network-monitors/src/monitor.rs @@ -8,7 +8,7 @@ use std::io; use telio_utils::{telio_log_debug, telio_log_warn}; use tokio::{sync::broadcast::Sender, task::JoinHandle}; /// Sender to notify if there is a change in OS interface order -pub static PATH_CHANGE_BROADCAST: Lazy> = Lazy::new(|| Sender::new(2)); +pub static PATH_CHANGE_BROADCAST: Lazy> = Lazy::new(|| Sender::new(10)); /// Vector containing all local interfaces pub static LOCAL_ADDRS_CACHE: Mutex> = Mutex::new(Vec::new()); #[cfg(all( From 910cf68694b1a252a6d186194374c711f70dc8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juozapas=20Bo=C4=8Dkus?= Date: Tue, 29 Oct 2024 11:53:10 +0200 Subject: [PATCH 2/2] Add changelog entry --- .unreleased/test_mesh_plus_vpn_one_peer | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .unreleased/test_mesh_plus_vpn_one_peer diff --git a/.unreleased/test_mesh_plus_vpn_one_peer b/.unreleased/test_mesh_plus_vpn_one_peer new file mode 100644 index 000000000..e69de29bb