diff options
author | Florin Coras <fcoras@cisco.com> | 2023-10-07 14:27:52 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-10-09 21:46:16 +0000 |
commit | 900323337770f2ac000dff8f842ff101f093d188 (patch) | |
tree | aad9237f12f6fee09067e4d55471ca78004747cf /src/plugins/tlspicotls | |
parent | 3c06859f9f4ed3887592c523b8940d950939b9d7 (diff) |
tls: propagate reads to app irrespective of state
Session input node handles rx notifications even if session not fully
accepted/connected
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I6560c45db8f8e0b7f0dc3bdd0939f13ca2f43f15
(cherry picked from commit aa7b88120ad83a29a05522bed4e5aa71524b8aba)
Diffstat (limited to 'src/plugins/tlspicotls')
-rw-r--r-- | src/plugins/tlspicotls/tls_picotls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tlspicotls/tls_picotls.c b/src/plugins/tlspicotls/tls_picotls.c index 393f2bf9940..4c19084fea3 100644 --- a/src/plugins/tlspicotls/tls_picotls.c +++ b/src/plugins/tlspicotls/tls_picotls.c @@ -445,7 +445,7 @@ picotls_ctx_read (tls_ctx_t *ctx, session_t *tcp_session) app_session = session_get_from_handle (ctx->app_session_handle); wrote = ptls_tcp_to_app_write (ptls_ctx, app_session->rx_fifo, tcp_rx_fifo); - if (wrote && app_session->session_state >= SESSION_STATE_READY) + if (wrote) tls_notify_app_enqueue (ctx, app_session); if (ptls_ctx->read_buffer_offset || svm_fifo_max_dequeue (tcp_rx_fifo)) |