session: ignore app rx ntf if transport closed 34/39634/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 10 Oct 2023 19:39:55 +0000 (12:39 -0700)
committerDave Barach <vpp@barachs.net>
Wed, 11 Oct 2023 19:23:38 +0000 (19:23 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Id56a101a6350903b00f7c96705fb86039e70e12c

src/vnet/session/session_node.c

index d27b804..9e20670 100644 (file)
@@ -1785,7 +1785,7 @@ session_event_dispatch_io (session_worker_t * wrk, vlib_node_runtime_t * node,
       break;
     case SESSION_IO_EVT_RX:
       s = session_event_get_session (wrk, e);
-      if (!s)
+      if (!s || s->session_state >= SESSION_STATE_TRANSPORT_CLOSED)
        break;
       transport_app_rx_evt (session_get_transport_proto (s),
                            s->connection_index, s->thread_index);