chiark / gitweb /
limit rx queue, set limit to max batch down, seems sensible
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 17:22:40 +0000 (18:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 17:22:40 +0000 (18:22 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/client.rs

index 91c9abd3e634fd7636f085af04eac82b0774bfbd..7667271feeaff2b6a241c232df0ed30f8539e4f0 100644 (file)
@@ -215,8 +215,7 @@ async fn run_client<C:HCC>(
   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(())