diff options
author | Florin Coras <fcoras@cisco.com> | 2021-05-19 19:28:40 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-05-20 10:03:57 +0000 |
commit | e3c6a54995b052045709b1d80039eede1757f43f (patch) | |
tree | 0be3cb21df3fc374f5f1ee70de47ae997d384de7 /src/vnet/tls | |
parent | 05bc33c15d814409933d741f6c88c450c4392fc9 (diff) |
tls svm: prealloc tcp fifo chunks before ssl write
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I7c47b55ec6f0c83f2d13e0e737d0559a32f7c837
Diffstat (limited to 'src/vnet/tls')
-rw-r--r-- | src/vnet/tls/tls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 6a61df122c8..1ab885e3db5 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -226,7 +226,8 @@ tls_notify_app_connected (tls_ctx_t * ctx, session_error_t err) /* Free app session pre-allocated when transport was established */ if (ctx->tls_type == TRANSPORT_PROTO_TLS) session_free (session_get (ctx->c_s_index, ctx->c_thread_index)); - goto failed; + ctx->no_app_session = 1; + goto send_reply; } /* For DTLS the app session is not preallocated because the underlying udp @@ -271,6 +272,7 @@ tls_notify_app_connected (tls_ctx_t * ctx, session_error_t err) failed: ctx->no_app_session = 1; tls_disconnect (ctx->tls_ctx_handle, vlib_get_thread_index ()); +send_reply: return app_worker_connect_notify (app_wrk, 0, err, ctx->parent_app_api_context); } |