From 7a18b0f0a5507a1fcb72e031b23bec2fe51e9c14 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 29 Mar 2024 15:39:58 -0700 Subject: tls: fix rescheduling when no data available Don't force tx rescheduling of tls session if no forward progress is made. The session will still be rescheduled by the session infra if there's pending tx data. Type: fix Signed-off-by: Florin Coras Change-Id: Ic57b6ee79969055cec782938668c054bcc39f206 --- src/plugins/tlsopenssl/tls_openssl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index a21e3bb54c1..98982439b96 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -455,8 +455,11 @@ check_tls_fifo: sp->flags |= TRANSPORT_SND_F_DESCHED; } else - /* Request tx reschedule of the app session */ - app_session->flags |= SESSION_F_CUSTOM_TX; + { + /* Request tx reschedule of the app session */ + if (wrote) + app_session->flags |= SESSION_F_CUSTOM_TX; + } return wrote; } -- cgit 1.2.3-korg