25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Set SSL_MODE_RELEASE_BUFFERS mode when available (EJAB-1351)

This commit is contained in:
Evgeniy Khramtsov 2010-11-17 13:54:27 +09:00
parent 6eeef62ce4
commit 97087eb3b9

View File

@ -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)
{