Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e89bfe3
)
tls: change SSL_has_pending to avoid BIO check error
89/23689/4
author
Yu Ping
<ping.yu@intel.com>
Thu, 28 Nov 2019 19:14:42 +0000
(
03:14
+0800)
committer
Florin Coras
<florin.coras@gmail.com>
Thu, 5 Dec 2019 02:45:47 +0000
(
02:45
+0000)
Type: fix
Change-Id: I454aff1b187b75a1328c90e30b9b487377ae5f68
Signed-off-by: Yu Ping <ping.yu@intel.com>
src/plugins/tlsopenssl/tls_openssl.c
patch
|
blob
|
history
diff --git
a/src/plugins/tlsopenssl/tls_openssl.c
b/src/plugins/tlsopenssl/tls_openssl.c
index
981e36b
..
eeeb749
100644
(file)
--- a/
src/plugins/tlsopenssl/tls_openssl.c
+++ b/
src/plugins/tlsopenssl/tls_openssl.c
@@
-479,7
+479,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);
@@
-488,7
+488,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;