From 549f1029a61193d2c46ae188ec406562ec114719 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 17 Nov 2010 13:54:27 +0900 Subject: [PATCH] Set SSL_MODE_RELEASE_BUFFERS mode when available (EJAB-1351) --- src/tls/tls_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index 041fad6ed..fd4e7fff2 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -346,6 +346,9 @@ static int tls_drv_control(ErlDrvData handle, SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF); SSL_CTX_set_default_verify_paths(ctx); +#ifdef SSL_MODE_RELEASE_BUFFERS + SSL_CTX_set_mode(ctx, SSL_MODE_RELEASE_BUFFERS); +#endif if (command == SET_CERTIFICATE_FILE_ACCEPT) {