diff options
author | Florin Coras <fcoras@cisco.com> | 2024-04-09 13:27:53 -0700 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-04-10 19:35:48 +0000 |
commit | aa78631d755bf9f55532935599b9964f943a27f3 (patch) | |
tree | 00217504b9886568b1b6db09a47272943829e57c /src/vnet/session/session_input.c | |
parent | 50e7ea7b14863a155a359fb192df9a23883a3391 (diff) |
session: add api to detach session from app
Type: improvement
Change-Id: Ib824d0ca9efc7d8967e043db69017655b2dcf6b5
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_input.c')
-rw-r--r-- | src/vnet/session/session_input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vnet/session/session_input.c b/src/vnet/session/session_input.c index e7a81c343f4..73b777127fd 100644 --- a/src/vnet/session/session_input.c +++ b/src/vnet/session/session_input.c @@ -154,8 +154,7 @@ app_worker_flush_events_inline (app_worker_t *app_wrk, u32 thread_index, old_state = s->session_state; if (app->cb_fns.session_accept_callback (s)) { - session_close (s); - s->app_wrk_index = APP_INVALID_INDEX; + session_detach_app (s); break; } if (is_builtin) @@ -184,8 +183,7 @@ app_worker_flush_events_inline (app_worker_t *app_wrk, u32 thread_index, break; if (rv) { - session_close (s); - s->app_wrk_index = APP_INVALID_INDEX; + session_detach_app (s); break; } if (old_state >= SESSION_STATE_TRANSPORT_CLOSING) |