From 97d67bd7ec8b42bca107c91f563ba4216015f58c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 Aug 2021 18:22:40 +0100 Subject: [PATCH] limit rx queue, set limit to max batch down, seems sensible Signed-off-by: Ian Jackson --- src/bin/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/client.rs b/src/bin/client.rs index 91c9abd..7667271 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -215,8 +215,7 @@ async fn run_client( async { loop { let rx_queue_space = - if rx_queue.remaining() < ic.max_batch_down.sat() * 3 /* xxx */ { - // xxx make this separate option ? docs say server only + if rx_queue.remaining() < ic.max_batch_down.sat() { Ok(()) } else { Err(()) -- 2.30.2