From e565902654aea1e73b740cf68daa3d116cc15f9e Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 27 Feb 2024 17:10:25 -0800 Subject: tls: avoid app session preallocation Since async rx event infra decouples notification event generation from delivery we no longer run the risk of having tls realloc session pools while session layer still holds a pointer to the accepted/connected tcp session. Type: improvement Signed-off-by: Florin Coras Change-Id: I1bb429a058707aba1d4f32ea33615a2367e66969 --- src/plugins/tlspicotls/tls_picotls.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/plugins/tlspicotls') diff --git a/src/plugins/tlspicotls/tls_picotls.c b/src/plugins/tlspicotls/tls_picotls.c index 81c4b2ecf57..7375b928206 100644 --- a/src/plugins/tlspicotls/tls_picotls.c +++ b/src/plugins/tlspicotls/tls_picotls.c @@ -179,7 +179,6 @@ picotls_stop_listen (tls_ctx_t * lctx) static void picotls_handle_handshake_failure (tls_ctx_t * ctx) { - session_free (session_get (ctx->c_s_index, ctx->c_thread_index)); ctx->flags |= TLS_CONN_F_NO_APP_SESSION; ctx->c_s_index = SESSION_INVALID_INDEX; tls_disconnect_transport (ctx); -- cgit 1.2.3-korg