X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp.c;h=037abdc652d0250556e70b887fcda0a5314b0a64;hb=03afb6d973edea2d0e5ba6b7459e26c4192e9506;hp=51878b4069e4a324b30cdfa2004216f2afae74e5;hpb=34a3a08d993cbbb3846b83b69b5338d452463e15;p=vpp.git diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 51878b4069e..037abdc652d 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -284,8 +284,7 @@ tcp_connection_reset (tcp_connection_t * tc) break; case TCP_STATE_SYN_SENT: session_stream_connect_notify (&tc->connection, 1 /* fail */ ); - tcp_connection_set_state (tc, TCP_STATE_CLOSED); - tcp_timer_set (tc, TCP_TIMER_WAITCLOSE, TCP_CLEANUP_TIME); + tcp_connection_cleanup (tc); break; case TCP_STATE_ESTABLISHED: tcp_connection_timers_reset (tc);