session: fix duplicate segment del message 96/34696/2
authorFlorin Coras <fcoras@cisco.com>
Tue, 7 Dec 2021 22:47:12 +0000 (14:47 -0800)
committerDave Barach <openvpp@barachs.net>
Wed, 8 Dec 2021 00:12:51 +0000 (00:12 +0000)
Type: fix

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

src/vnet/session/application_local.c

index eb1c258..1bf5d93 100644 (file)
@@ -304,12 +304,7 @@ ct_session_dealloc_fifos (ct_connection_t *ct, svm_fifo_t *rx_fifo,
        app_worker_del_segment_notify (app_wrk, ct->segment_handle);
     }
 
-  if (!segment_manager_app_detached (sm))
-    {
-      app_wrk = app_worker_get (ct->server_wrk);
-      app_worker_del_segment_notify (app_wrk, ct->segment_handle);
-    }
-
+  /* Notify server app and free segment */
   segment_manager_lock_and_del_segment (sm, seg_index);
 
   /* Cleanup segment manager if needed. If server detaches there's a chance