session: ct connection frees after notifications 01/43901/3
authorFlorin Coras <[email protected]>
Thu, 16 Oct 2025 23:05:13 +0000 (19:05 -0400)
committerDave Barach <[email protected]>
Fri, 17 Oct 2025 00:23:15 +0000 (00:23 +0000)
Request ct connection frees to be done after app is notified of cleanup.
Allows eventing to glean the connection before cleanup.

Type: improvement

Change-Id: I33a41d01d4f57486eb63f86e5482d1242287fe5d
Signed-off-by: Florin Coras <[email protected]>
src/vnet/session/application_local.c

index 499e52c..c02cd6a 100644 (file)
@@ -644,8 +644,7 @@ ct_session_postponed_cleanup (ct_connection_t *ct)
    * in session delete due to session_lookup_del_session returns an error.
    * session_transport_closed_notify (&ct->connection);
    */
-  session_transport_delete_notify (&ct->connection);
-  ct_connection_free (ct);
+  session_transport_delete_request (&ct->connection, ct_connection_free);
 }
 
 static void