summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-02-26 16:12:06 +0000
committerDave Barach <openvpp@barachs.net>2020-02-29 17:40:25 +0000
commit05aceacc38d1988c0651829d4733feb4745b427e (patch)
tree9fa689b922fb4bc1afcc745707e67b9ca309362b /src/plugins
parent695b0e0b3d8db6bbc4c6bd77095133b02813df06 (diff)
tls: reduce bio buffering
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0895eb54a8c31bfa545d30287bb0783876483d21
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c
index f25ac9f580d..6d0364c3acb 100644
--- a/src/plugins/tlsopenssl/tls_openssl.c
+++ b/src/plugins/tlsopenssl/tls_openssl.c
@@ -416,7 +416,7 @@ static inline int
openssl_ctx_write (tls_ctx_t * ctx, session_t * app_session)
{
openssl_ctx_t *oc = (openssl_ctx_t *) ctx;
- int wrote = 0, read, max_buf = 100 * TLS_CHUNK_SIZE, max_space;
+ int wrote = 0, read, max_buf = 4 * TLS_CHUNK_SIZE, max_space;
u32 deq_max, to_write;
session_t *tls_session;
svm_fifo_t *f;
@@ -472,7 +472,7 @@ check_tls_fifo:
static inline int
openssl_ctx_read (tls_ctx_t * ctx, session_t * tls_session)
{
- int read, wrote = 0, max_space, max_buf = 100 * TLS_CHUNK_SIZE;
+ int read, wrote = 0, max_space, max_buf = 4 * TLS_CHUNK_SIZE;
openssl_ctx_t *oc = (openssl_ctx_t *) ctx;
u32 deq_max, to_write;
session_t *app_session;