summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-11-17 11:41:10 -0800
committerFlorin Coras <fcoras@cisco.com>2021-11-17 11:41:10 -0800
commitfc8d0c510372823ac029b6330e876fab9400dbae (patch)
tree61f9e57c28342bad6b22be59b8abfa0b7b68a5d6 /src
parent0200044387b3ee0cb700d9f605cc7e7960bef287 (diff)
session: fix state check in switch pool
This affect udp only Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I5e05e9c77b733b9e10c14cc9ef610c9bff216fa0
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index a50d3f4b9e0..3a7e98053c6 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -999,12 +999,12 @@ session_switch_pool (void *cb_args)
ASSERT (args->thread_index == vlib_get_thread_index ());
s = session_get (args->session_index, args->thread_index);
+ /* Check if session closed during migration */
+ rargs.is_closed = s->session_state >= SESSION_STATE_TRANSPORT_CLOSING;
+
transport_cleanup (session_get_transport_proto (s), s->connection_index,
s->thread_index);
- /* Check if session closed during migration */
- rargs.is_closed = s->session_state > SESSION_STATE_READY;
-
app_wrk = app_worker_get_if_valid (s->app_wrk_index);
if (app_wrk)
{