mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Set SSL_MODE_RELEASE_BUFFERS mode when available (EJAB-1351)
This commit is contained in:
parent
da7e53fe3c
commit
549f1029a6
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user