From 5a2ec8fc41d14ffc5275ab88761c1fb7e0420a33 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 27 Dec 2018 11:53:11 -0800 Subject: session: free session after transport and app confirm In addition to that, a bit of refactoring. Change-Id: Iea1eabc2167bcdef185ec53bc09bae087c5398e6 Signed-off-by: Florin Coras --- src/plugins/unittest/session_test.c | 4 ++-- src/plugins/unittest/tcp_test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/unittest/session_test.c b/src/plugins/unittest/session_test.c index 5a3c9fbc35e..c504d8df15d 100644 --- a/src/plugins/unittest/session_test.c +++ b/src/plugins/unittest/session_test.c @@ -388,9 +388,9 @@ session_test_endpoint_cfg (vlib_main_t * vm, unformat_input_t * input) * main thread, even when we have workers and we avoid polling main thread, * i.e., we can't cleanup pending disconnects, so force cleanup for both */ - stream_session_cleanup (s); + session_transport_cleanup (s); s = session_get (accepted_session_index, accepted_session_thread); - stream_session_cleanup (s); + session_transport_cleanup (s); vnet_app_detach_args_t detach_args = { .app_index = server_index, diff --git a/src/plugins/unittest/tcp_test.c b/src/plugins/unittest/tcp_test.c index bbb80404019..66260df2ff6 100644 --- a/src/plugins/unittest/tcp_test.c +++ b/src/plugins/unittest/tcp_test.c @@ -1795,7 +1795,7 @@ tcp_test_session (vlib_main_t * vm, unformat_input_t * input) { tc0 = tcp_connection_get (0 /* connection index */ , 0 /* thread */ ); tc0->state = TCP_STATE_CLOSED; - stream_session_disconnect_notify (&tc0->connection); + session_transport_closing_notify (&tc0->connection); } return rv; -- cgit 1.2.3-korg