diff options
author | Yu Ping <ping.yu@intel.com> | 2019-11-29 03:14:42 +0800 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-12 07:43:14 +0000 |
commit | e09a07826e699f9e1bee93c8ed4457eecd941790 (patch) | |
tree | 84c48e5ad1bd3169750bff117f69df1d01ce60c0 | |
parent | be4511d318291d9a0d3888faf1d32857194e2f3b (diff) |
tls: change SSL_has_pending to avoid BIO check error
Type: fix
Change-Id: I454aff1b187b75a1328c90e30b9b487377ae5f68
Signed-off-by: Yu Ping <ping.yu@intel.com>
(cherry picked from commit ce9bdfe5fcfa6e2acd670ea0063ce5e0fde15096)
-rw-r--r-- | src/plugins/tlsopenssl/tls_openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index 8d0fd36a04f..e68251c742b 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -478,7 +478,7 @@ check_app_fifo: return wrote; } svm_fifo_enqueue_nocopy (f, read); - if (read < enq_max && BIO_ctrl_pending (oc->wbio) > 0) + if (read < enq_max && SSL_pending (oc->ssl) > 0) { deq_now = clib_min (svm_fifo_max_write_chunk (f), enq_max - read); read = SSL_read (oc->ssl, svm_fifo_tail (f), deq_now); @@ -487,7 +487,7 @@ check_app_fifo: } tls_notify_app_enqueue (ctx, app_session); - if (BIO_ctrl_pending (oc->wbio) > 0) + if (SSL_pending (oc->ssl) > 0) tls_add_vpp_q_builtin_rx_evt (tls_session); return wrote; |