diff options
author | Florin Coras <fcoras@cisco.com> | 2018-12-04 09:21:36 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-12-05 15:36:46 +0000 |
commit | 4af830cd7b4a11bb84840183f7eebd6fb43497a6 (patch) | |
tree | 3a47abfae6a651a4be8f5c6a6cb180399c90db62 /src/vnet/session-apps/http_server.c | |
parent | 01fdbcca130a6575712de99e26f46e21da432d40 (diff) |
session/tcp: postpone cleanup on reset
Change-Id: I45fd7538853f84c6c8bf804cc20acbc9601db3ba
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session-apps/http_server.c')
-rw-r--r-- | src/vnet/session-apps/http_server.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vnet/session-apps/http_server.c b/src/vnet/session-apps/http_server.c index 37441bb2188..d5e0ed98e08 100644 --- a/src/vnet/session-apps/http_server.c +++ b/src/vnet/session-apps/http_server.c @@ -435,7 +435,7 @@ static void http_server_session_disconnect_callback (stream_session_t * s) { http_server_main_t *bsm = &http_server_main; - vnet_disconnect_args_t _a, *a = &_a; + vnet_disconnect_args_t _a = { 0 }, *a = &_a; a->handle = session_handle (s); a->app_index = bsm->app_index; @@ -445,8 +445,11 @@ http_server_session_disconnect_callback (stream_session_t * s) static void http_server_session_reset_callback (stream_session_t * s) { - clib_warning ("called.. "); - stream_session_cleanup (s); + http_server_main_t *htm = &http_server_main; + vnet_disconnect_args_t _a = { 0 }, *a = &_a; + a->handle = session_handle (s); + a->app_index = htm->app_index; + vnet_disconnect_session (a); } static int |