summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tls.c b/tls.c
index 88320ab..3f1f6fa 100644
--- a/tls.c
+++ b/tls.c
@@ -228,6 +228,9 @@ int ssl_init(void) {
SSL_CTX_set_options(settings.ssl_ctx, SSL_OP_NO_RENEGOTIATION);
#endif
+ // Release TLS read/write buffers of idle connections
+ SSL_CTX_set_mode(settings.ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
+
return 0;
}