diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2019-07-04 14:26:21 +0200 |
---|---|---|
committer | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2019-07-08 18:25:33 +0200 |
commit | 2eed1a12b425701d6109c9b55c9c1cac806de724 (patch) | |
tree | 03df0c019bd1854459ba633ef41828b5311d0756 /src/vnet/session/session.c | |
parent | 69a85b5054b369ee33322adadfa6c283a44741e0 (diff) |
session: add flag to disable session lookup
Type: feature
Change-Id: I1369859be0a722ea37e5d3ecb35dee5684fc69f8
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index faaaad4bada..d378d6d2426 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -946,7 +946,6 @@ session_open_cl (u32 app_wrk_index, session_endpoint_t * rmt, u32 opaque) sh = session_handle (s); session_lookup_add_connection (tc, sh); - return app_worker_connect_notify (app_wrk, s, opaque); } @@ -1079,7 +1078,8 @@ session_stop_listen (session_t * s) if (!tc) return VNET_API_ERROR_ADDRESS_NOT_IN_USE; - session_lookup_del_connection (tc); + if (!(tc->flags & TRANSPORT_CONNECTION_F_NO_LOOKUP)) + session_lookup_del_connection (tc); transport_stop_listen (tp, s->connection_index); return 0; } |