From 3b5e222f8a4d0ccd4ec4eace2551491f13de85d9 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 25 Oct 2019 16:23:39 -0700 Subject: session: app-closed to transport-deleted on delete notify Type: refactor As a result, transport-deleted is the only session state that has no transport data structure. Change-Id: I2da2bc4bbb141d8a7b52faae66a4733de8f8513b Signed-off-by: Florin Coras --- src/vnet/session/session.c | 2 +- src/vnet/session/session_types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 2cde1f99bb6..aff2cceaf14 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -887,7 +887,7 @@ session_transport_delete_notify (transport_connection_t * tc) * session is just removed because both transport and app have * confirmed the close*/ session_lookup_del_session (s); - s->session_state = SESSION_STATE_CLOSED; + s->session_state = SESSION_STATE_TRANSPORT_DELETED; session_cleanup_notify (s, SESSION_CLEANUP_TRANSPORT); svm_fifo_dequeue_drop_all (s->tx_fifo); session_program_transport_ctrl_evt (s, SESSION_CTRL_EVT_CLOSE); diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h index 2b5658490a2..2e8a455d4c0 100644 --- a/src/vnet/session/session_types.h +++ b/src/vnet/session/session_types.h @@ -135,8 +135,8 @@ typedef enum _(CLOSING, "closing") \ _(APP_CLOSED, "app-closed") \ _(TRANSPORT_CLOSED, "transport-closed") \ - _(TRANSPORT_DELETED, "transport-deleted") \ _(CLOSED, "closed") \ + _(TRANSPORT_DELETED, "transport-deleted") \ typedef enum { -- cgit 1.2.3-korg