From 11ac976f5350cfeeaccb21f9afbc599b693ba51c Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Oct 2025 18:53:50 +0200 Subject: [PATCH] This one is up for debate - let's see --- common/client-core/src/client/mix_traffic/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/client-core/src/client/mix_traffic/mod.rs b/common/client-core/src/client/mix_traffic/mod.rs index bf83c62462..c6a158e2e4 100644 --- a/common/client-core/src/client/mix_traffic/mod.rs +++ b/common/client-core/src/client/mix_traffic/mod.rs @@ -20,7 +20,10 @@ pub mod transceiver; // We remind ourselves that 32 x 32kb = 1024kb, a reasonable size for a network buffer. pub const MIX_MESSAGE_RECEIVER_BUFFER_SIZE: usize = 32; -const MAX_FAILURE_COUNT: usize = 100; + +/// Reduced from 100 to 20 to fail fast (~1-2 seconds instead of ~6 seconds). +/// If we can't send 20 packets in a row, the gateway is unreachable. +const MAX_FAILURE_COUNT: usize = 20; // that's also disgusting. pub struct Empty;