From c1214bd1b619d3f566be5a1783cfe717ee608136 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Fri, 8 Dec 2017 15:12:36 +0100 Subject: [PATCH] make sure the very first fragment triggers an rx_callback On the first session server, the first payload packet gets queued but the Rx callback will only be invoked when the second packet is received. By initializing enqueue_epoch in the session, we can make sure that the RX callback will be invoked for the first packet as well. Change-Id: I60e2cf8d4d2ca71d461ca003d459c8e6e6956a4d Signed-off-by: Andreas Schultz --- src/vnet/session/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index b1bd7a7f041..616bfc9f150 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -147,6 +147,7 @@ session_alloc_for_connection (transport_connection_t * tc) s = session_alloc (thread_index); s->session_type = session_type_from_proto_and_ip (tc->proto, tc->is_ip4); s->session_state = SESSION_STATE_CONNECTING; + s->enqueue_epoch = ~0; /* Attach transport to session and vice versa */ s->connection_index = tc->c_index; -- 2.16.6