diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-11-08 15:28:06 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-12-12 09:54:11 +0100 |
| commit | 20931c2b4ae8dd2b470bc2e4abec01b2cdde7ff0 (patch) | |
| tree | 4e5bd996ca5a98be5a96ebe446afa08fa771074a | |
| parent | f1ea8f1b344a0fcb33a7c13b66f2bd9b952252d4 (diff) | |
| download | mullvadvpn-20931c2b4ae8dd2b470bc2e4abec01b2cdde7ff0.tar.xz mullvadvpn-20931c2b4ae8dd2b470bc2e4abec01b2cdde7ff0.zip | |
Adjust DAITA buffer sizes
Previous size resulted in occasional dropped events
| -rw-r--r-- | talpid-wireguard/src/wireguard_go/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/talpid-wireguard/src/wireguard_go/mod.rs b/talpid-wireguard/src/wireguard_go/mod.rs index c0775ac339..11c5adf1d4 100644 --- a/talpid-wireguard/src/wireguard_go/mod.rs +++ b/talpid-wireguard/src/wireguard_go/mod.rs @@ -33,11 +33,11 @@ const MAX_PREPARE_TUN_ATTEMPTS: usize = 4; /// Maximum number of events that can be stored in the underlying buffer #[cfg(daita)] -const DAITA_EVENTS_CAPACITY: u32 = 1000; +const DAITA_EVENTS_CAPACITY: u32 = 2048; /// Maximum number of actions that can be stored in the underlying buffer #[cfg(daita)] -const DAITA_ACTIONS_CAPACITY: u32 = 1000; +const DAITA_ACTIONS_CAPACITY: u32 = 1024; type Result<T> = std::result::Result<T, TunnelError>; |
