mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
If MaxMemFree is set, set SSL_MODE_RELEASE_BUFFERS in mod_ssl.
Always set SSL_MODE_RELEASE_BUFFERS in ab. PR: 51618 Submitted by: Cristian Rodríguez <crrodriguez opensuse org>, Stefan Fritsch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1178079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
see Recursive.''
|
||||
-- Unknown */
|
||||
#include "ssl_private.h"
|
||||
#include "mpm_common.h"
|
||||
|
||||
/* _________________________________________________________________
|
||||
**
|
||||
@@ -574,6 +575,12 @@ static void ssl_init_ctx_protocol(server_rec *s,
|
||||
*/
|
||||
SSL_CTX_set_options(ctx, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
|
||||
#endif
|
||||
|
||||
#ifdef SSL_MODE_RELEASE_BUFFERS
|
||||
/* If httpd is configured to reduce mem usage, ask openssl to do so, too */
|
||||
if (ap_max_mem_free != APR_ALLOCATOR_MAX_FREE_UNLIMITED)
|
||||
SSL_CTX_set_mode(ctx, SSL_MODE_RELEASE_BUFFERS);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void ssl_init_ctx_session_cache(server_rec *s,
|
||||
|
Reference in New Issue
Block a user