aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-01-04 08:45:22 -0800
committerJohn Lo <loj@cisco.com>2019-01-04 22:07:03 +0000
commit03afb6d973edea2d0e5ba6b7459e26c4192e9506 (patch)
tree4a51288836213ae2f2181c57c590225b26909627 /src
parent34a3a08d993cbbb3846b83b69b5338d452463e15 (diff)
tcp: fix reset in syn-sent
Change-Id: I6732adc06fbb3d4b427e671ddcfe6eabc08d4a1b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tcp/tcp.c3
1 files changed, 1 insertions, 2 deletions
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);