dovecot-2.1: Use SSL_MODE_RELEASE_BUFFERS if available to keep m...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 4 23:56:53 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/88d5239c0d9a
changeset: 13655:88d5239c0d9a
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 05 00:07:14 2011 +0200
description:
Use SSL_MODE_RELEASE_BUFFERS if available to keep memory usage low.
Based on patch by Cristian Rodríguez.
diffstat:
src/login-common/ssl-proxy-openssl.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r b5d4b4e43840 -r 88d5239c0d9a src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c Sat Nov 05 00:00:49 2011 +0200
+++ b/src/login-common/ssl-proxy-openssl.c Sat Nov 05 00:07:14 2011 +0200
@@ -931,6 +931,10 @@
/* enable all SSL workarounds */
SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL);
+#ifdef SSL_MODE_RELEASE_BUFFERS
+ SSL_CTX_set_mode(ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
+#endif
+
if (*set->ssl_ca != '\0') {
/* set trusted CA certs */
store = SSL_CTX_get_cert_store(ssl_ctx);
More information about the dovecot-cvs
mailing list