summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-11-27 10:54:29 -0800
committerDave Barach <openvpp@barachs.net>2021-11-29 17:50:05 +0000
commit5babf98369e07847806752c09f4dac81f270765e (patch)
tree57efe6679840fdf3259d52b3f08e4afce576f673
parentdfd27bc0f2bf8e95feec055de5e7a9b19a496bec (diff)
session: no deq notifications after close
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I3e633f017c68e8c5446e45b577048138a387daf6
-rw-r--r--src/vnet/session/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index f4a9e456454..ffe29f9a293 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1552,6 +1552,8 @@ session_close (session_t * s)
return;
}
+ /* App closed so stop propagating dequeue notifications */
+ svm_fifo_clear_deq_ntf (s->tx_fifo);
s->session_state = SESSION_STATE_CLOSING;
session_program_transport_ctrl_evt (s, SESSION_CTRL_EVT_CLOSE);
}