tls: fix rescheduling when no data available 23/40623/3
authorFlorin Coras <fcoras@cisco.com>
Fri, 29 Mar 2024 22:39:58 +0000 (15:39 -0700)
committerDave Barach <vpp@barachs.net>
Sat, 30 Mar 2024 18:25:24 +0000 (18:25 +0000)
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 <fcoras@cisco.com>
Change-Id: Ic57b6ee79969055cec782938668c054bcc39f206

src/plugins/tlsopenssl/tls_openssl.c

index a21e3bb..9898243 100644 (file)
@@ -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;
 }