From c08879edea3fdb010989e32830c873e49669d386 Mon Sep 17 00:00:00 2001 From: Asias He Date: Fri, 24 Oct 2014 16:27:00 +0800 Subject: [PATCH] tcp: Do not advertise zero window when ACK remote FIN Follow Linux's behavior. --- net/tcp.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/net/tcp.hh b/net/tcp.hh index a9034880e1..b79b6494e9 100644 --- a/net/tcp.hh +++ b/net/tcp.hh @@ -515,7 +515,6 @@ void tcp::tcb::input(tcp_hdr* th, packet p) { // FIXME: we might queue an out-of-order FIN. Is it worthwhile? _foreign_fin_received = true; _rcv.next = fin_seq + 1; - _rcv.window = 0; if (_rcv._user_waiting) { _rcv._user_waiting = false; _rcv._data_received.set_value();