25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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 da7e53fe3c
commit 549f1029a6

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_session_cache_mode(ctx, SSL_SESS_CACHE_OFF);
SSL_CTX_set_default_verify_paths(ctx); 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) if (command == SET_CERTIFICATE_FILE_ACCEPT)
{ {