From 5d265456febf328b51e0df4205859099c20da895 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 28 Jun 2019 09:41:28 -0700 Subject: tcp: fix close-waiting check for outstanding tx data Type: fix Change-Id: I9e0e1bb933c38b17ac9fb8bf11b81e2fed021bf8 Signed-off-by: Florin Coras (cherry picked from commit 182bbc1c5ab3d8607153dd19f0a24baaf5cbfc88) --- src/vnet/tcp/tcp_input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index be85c8ba139..ca8f2a53f31 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2837,7 +2837,8 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node, break; /* Still have outstanding tx data */ - if (transport_max_tx_dequeue (&tc0->connection)) + max_dequeue = transport_max_tx_dequeue (&tc0->connection); + if (max_dequeue > tc0->burst_acked) break; tcp_send_fin (tc0); -- cgit 1.2.3-korg