From 5dde1d0885e1598af2476fdcd843afffd8565e61 Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Fri, 11 Apr 2025 14:33:15 +0200 Subject: [PATCH] Decrease chunk send timeout Signed-off-by: Lee Smet --- mycelium/src/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mycelium/src/message.rs b/mycelium/src/message.rs index c60e768..dcb9574 100644 --- a/mycelium/src/message.rs +++ b/mycelium/src/message.rs @@ -45,7 +45,7 @@ mod topic; const MESSAGE_SEND_WINDOW: Duration = Duration::from_secs(60 * 5); /// The amount of time to wait before sending a chunk again if receipt is not acknowledged. -const RETRANSMISSION_DELAY: Duration = Duration::from_secs(1); +const RETRANSMISSION_DELAY: Duration = Duration::from_millis(100); /// Amount of time between sweeps of the subscriber list to clear orphaned subscribers. const REPLY_SUBSCRIBER_CLEAR_DELAY: Duration = Duration::from_secs(60);