From ca09d0730974effd53b436871f3e69c8bb8b1114 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 1 Oct 2018 18:31:02 -0700 Subject: [PATCH] tcp: accept fins if in recovery Change-Id: I0c9c055fcc3d681c4032228a90cc81f484e200f0 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index d297ee7ed3e..10f50fefc09 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1401,7 +1401,9 @@ process_ack: if (!tcp_in_cong_recovery (tc)) return 0; *error = TCP_ERROR_ACK_DUP; - return vnet_buffer (b)->tcp.data_len ? 0 : -1; + if (vnet_buffer (b)->tcp.data_len || tcp_is_fin (th)) + return 0; + return -1; } /* -- 2.16.6