chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299ad3b
)
limit rx queue, set limit to max batch down, seems sensible
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 17:22:40 +0000
(18:22 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/bin/client.rs
b/src/bin/client.rs
index 91c9abd3e634fd7636f085af04eac82b0774bfbd..7667271feeaff2b6a241c232df0ed30f8539e4f0 100644
(file)
--- a/
src/bin/client.rs
+++ b/
src/bin/client.rs
@@
-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(())