aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-11-14 23:32:08 -0800
committerDave Barach <openvpp@barachs.net>2019-11-16 18:39:36 +0000
commit52be67435eb4615b899950b42b8ff72d258fbcb3 (patch)
treef82be550d9c97433882f482b1bee9e247c9ef7d4 /src
parent504d023d3bfdd91374a41fda34cd7be3f8340f7d (diff)
tcp: close session on retransmit failure
Type: fix Since the connection is closed, also mark the session as closed. Change-Id: Ica3849c3ff12fa7a65ba64e563a60d6c94f5ceca Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tcp/tcp_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c
index 7be3de8e26b..64e3b1a584a 100644
--- a/src/vnet/tcp/tcp_output.c
+++ b/src/vnet/tcp/tcp_output.c
@@ -1518,6 +1518,7 @@ tcp_timer_retransmit_handler (u32 tc_index)
tcp_send_reset (tc);
tcp_connection_set_state (tc, TCP_STATE_CLOSED);
session_transport_closing_notify (&tc->connection);
+ session_transport_closed_notify (&tc->connection);
tcp_connection_timers_reset (tc);
tcp_timer_update (tc, TCP_TIMER_WAITCLOSE, tcp_cfg.closewait_time);
return;