summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-05-23 20:44:12 -0700
committerDave Barach <openvpp@barachs.net>2018-05-25 17:04:31 +0000
commit56318932367ecb3fa65243033f1f8978c32fd4a4 (patch)
tree9db694954b2751a7a29ae401dfe49668cecb662c /src/vnet/tcp/tcp.c
parent33f22a8a72d9d853c08f0b932b240d130e69c3ac (diff)
tcp: handle acks in close wait
Thanks to Ning Li <muziding001@163.com> for reporting. Change-Id: I758bc6760ec5a9ec688172bc162a1873f96ab4f3 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp.c')
-rw-r--r--src/vnet/tcp/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c
index b3564004dd4..25292d1e588 100644
--- a/src/vnet/tcp/tcp.c
+++ b/src/vnet/tcp/tcp.c
@@ -333,8 +333,8 @@ tcp_connection_close (tcp_connection_t * tc)
tc->state = TCP_STATE_FIN_WAIT_1;
break;
case TCP_STATE_CLOSE_WAIT:
- tcp_connection_timers_reset (tc);
tcp_send_fin (tc);
+ tcp_connection_timers_reset (tc);
tc->state = TCP_STATE_LAST_ACK;
tcp_timer_update (tc, TCP_TIMER_WAITCLOSE, TCP_2MSL_TIME);
break;