From: Florin Coras Date: Fri, 4 Jan 2019 16:45:22 +0000 (-0800) Subject: tcp: fix reset in syn-sent X-Git-Tag: v19.04-rc0~49 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F16694%2F2;p=vpp.git tcp: fix reset in syn-sent Change-Id: I6732adc06fbb3d4b427e671ddcfe6eabc08d4a1b Signed-off-by: Florin Coras --- 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);