aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-04-19 10:58:00 -0700
committerDave Barach <openvpp@barachs.net>2021-04-20 16:48:49 +0000
commitadef691a6f544c30c417a8f747688cfbf30de356 (patch)
treee3ade2ff93a3d72445d95e19c5022306d1184980 /src/plugins/tlsopenssl
parent5a41fd5ee7af8d39106d5fc5de7f2d17d7356b30 (diff)
tls: honor tcp deq notification request
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ic24516a7242ef4193c5d751a2d5424918c390759
Diffstat (limited to 'src/plugins/tlsopenssl')
-rw-r--r--src/plugins/tlsopenssl/tls_bio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_bio.c b/src/plugins/tlsopenssl/tls_bio.c
index 5cdedf649a7..eead09a9635 100644
--- a/src/plugins/tlsopenssl/tls_bio.c
+++ b/src/plugins/tlsopenssl/tls_bio.c
@@ -77,6 +77,12 @@ bio_tls_read (BIO * b, char *out, int outl)
return -1;
}
+ if (svm_fifo_needs_deq_ntf (s->rx_fifo, rv))
+ {
+ svm_fifo_clear_deq_ntf (s->rx_fifo);
+ session_send_io_evt_to_thread (s->rx_fifo, SESSION_IO_EVT_RX);
+ }
+
if (svm_fifo_is_empty_cons (s->rx_fifo))
svm_fifo_unset_event (s->rx_fifo);