From 93e658058033e251b98d18a1f0717a07a85adfc2 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 29 Nov 2017 00:07:11 -0500 Subject: session: fix preallocation of local endpoint table Change-Id: I67a73e31bda9e497859297fcc1765e880572884a Signed-off-by: Florin Coras --- src/vnet/session/session_node.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vnet/session/session_node.c') diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index f647360ea5b..08baa447864 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -629,7 +629,10 @@ skip_dequeue: /* Can retransmit for closed sessions but can't do anything if * session is not ready or closed */ if (PREDICT_FALSE (s0->session_state < SESSION_STATE_READY)) - continue; + { + vec_add1 (smm->pending_event_vector[my_thread_index], *e0); + continue; + } /* Spray packets in per session type frames, since they go to * different nodes */ rv = (smm->session_tx_fns[s0->session_type]) (vm, node, smm, e0, s0, -- cgit 1.2.3-korg