session: fix connected udp accepts 36/36536/2
authorFlorin Coras <fcoras@cisco.com>
Tue, 28 Jun 2022 23:01:35 +0000 (16:01 -0700)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 28 Jun 2022 22:52:51 +0000 (22:52 +0000)
Type: fix

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

src/vnet/session/session.c

index f15248e..852f87d 100644 (file)
@@ -1312,6 +1312,7 @@ session_dgram_accept (transport_connection_t * tc, u32 listener_index,
     }
 
   session_lookup_add_connection (tc, session_handle (s));
+  s->session_state = SESSION_STATE_ACCEPTING;
 
   app_wrk = app_worker_get (s->app_wrk_index);
   if ((rv = app_worker_accept_notify (app_wrk, s)))