From 0a213d6433738bbf970101e70d0f4fb9eee8fb38 Mon Sep 17 00:00:00 2001 From: Michael Blizek Date: Sat, 20 Jun 2020 14:30:33 +0200 Subject: [PATCH] flush not done when neede bugfix --- net/cor/forward.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/cor/forward.c b/net/cor/forward.c index 766a11145656..85d4c1c8a5ca 100644 --- a/net/cor/forward.c +++ b/net/cor/forward.c @@ -760,13 +760,13 @@ __u32 receive_buf(struct conn *cn_lx, char *buf, __u32 datalen, cn_lx->data_buf.overhead == 0); } + if (datalen != 0) + flush = 0; + cn_lx->flush = flush; + account_bufspace(cn_lx); bufsize_update(cn_lx, totalcpy, rcv_delayed_lowbuf, flush); - cn_lx->flush = flush; - if (totalcpy != datalen) - cn_lx->flush = 0; - return totalcpy; } -- 2.11.4.GIT