From: Ian Jackson Date: Wed, 4 Aug 2021 17:22:40 +0000 (+0100) Subject: limit rx queue, set limit to max batch down, seems sensible X-Git-Tag: hippotat/1.0.0~340 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=97d67bd7ec8b42bca107c91f563ba4216015f58c;p=hippotat.git limit rx queue, set limit to max batch down, seems sensible Signed-off-by: Ian Jackson --- 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(())