From b75eea962451e1591fec39362cc889237c76bf31 Mon Sep 17 00:00:00 2001 From: cavemanloverboy <93507302+cavemanloverboy@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:08:31 +0200 Subject: [PATCH] fix: reduce max packet receive time during leader window (#2801) (cherry picked from commit 20e0df4debabf27a3da6d4c1a4972fc901cd22b1) --- .../banking_stage/transaction_scheduler/scheduler_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/banking_stage/transaction_scheduler/scheduler_controller.rs b/core/src/banking_stage/transaction_scheduler/scheduler_controller.rs index 136ad041b71dcf..e08c8a6e008fce 100644 --- a/core/src/banking_stage/transaction_scheduler/scheduler_controller.rs +++ b/core/src/banking_stage/transaction_scheduler/scheduler_controller.rs @@ -437,7 +437,7 @@ impl SchedulerController { fn receive_and_buffer_packets(&mut self, decision: &BufferedPacketsDecision) -> bool { let remaining_queue_capacity = self.container.remaining_queue_capacity(); - const MAX_PACKET_RECEIVE_TIME: Duration = Duration::from_millis(100); + const MAX_PACKET_RECEIVE_TIME: Duration = Duration::from_millis(10); let (recv_timeout, should_buffer) = match decision { BufferedPacketsDecision::Consume(_) => ( if self.container.is_empty() {