diff options
author | Florin Coras <fcoras@cisco.com> | 2019-10-25 16:23:39 -0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-11-15 07:15:44 +0000 |
commit | 52d6686e600cb62f61f2d2032c42f04e2244403e (patch) | |
tree | 962401025dc62bf11e61e26631e57539de76bf13 /src/vnet | |
parent | 82ae1a485ecb6e541134f49ebe3aa322deb60c89 (diff) |
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 <fcoras@cisco.com>
(cherry picked from commit 3b5e222f8a4d0ccd4ec4eace2551491f13de85d9)
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/session/session.c | 2 | ||||
-rw-r--r-- | 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 14cd1f6507a..55f6bfb808e 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 f4bb24e85d0..fde1e10bdfc 100644 --- a/src/vnet/session/session_types.h +++ b/src/vnet/session/session_types.h @@ -133,8 +133,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 { |