X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp.c;h=e34f773d7d33ee812e67c4c10c4b1c0d64646124;hb=3f78bbb8e875f3fccbcd167289ba2d307cb86263;hp=f83f00aa695aa2b96ce2e8f9c3830efb3590a483;hpb=5e6305fb02ccdfd38c8c5e369a960deaa7602eba;p=vpp.git diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index f83f00aa695..e34f773d7d3 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -1431,6 +1431,14 @@ tcp_timer_waitclose_handler (u32 conn_index, u32 thread_index) session_transport_closed_notify (&tc->connection); tcp_worker_stats_inc (thread_index, to_closing, 1); break; + case TCP_STATE_FIN_WAIT_2: + tcp_send_reset (tc); + tcp_connection_timers_reset (tc); + tcp_connection_set_state (tc, TCP_STATE_CLOSED); + session_transport_closed_notify (&tc->connection); + tcp_timer_set (tc, TCP_TIMER_WAITCLOSE, tcp_cfg.cleanup_time); + tcp_worker_stats_inc (thread_index, to_finwait2, 1); + break; default: tcp_connection_del (tc); break;