Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.c @ 4186:cce2fd0acc0f
Releasing memory of idle SSL connection. This saves about 34K per SSL
connection. The SSL_MODE_RELEASE_BUFFERS option is available since
OpenSSL 1.0.0d.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 07 Oct 2011 12:15:20 +0000 |
parents | 6af5959a2ace |
children | 5fef0313f2ff |
comparison
equal
deleted
inserted
replaced
4185:6af5959a2ace | 4186:cce2fd0acc0f |
---|---|
175 SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]); | 175 SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]); |
176 } | 176 } |
177 | 177 |
178 #ifdef SSL_OP_NO_COMPRESSION | 178 #ifdef SSL_OP_NO_COMPRESSION |
179 SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_COMPRESSION); | 179 SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_COMPRESSION); |
180 #endif | |
181 | |
182 #ifdef SSL_MODE_RELEASE_BUFFERS | |
183 SSL_CTX_set_mode(ssl->ctx, SSL_MODE_RELEASE_BUFFERS); | |
180 #endif | 184 #endif |
181 | 185 |
182 SSL_CTX_set_read_ahead(ssl->ctx, 1); | 186 SSL_CTX_set_read_ahead(ssl->ctx, 1); |
183 | 187 |
184 SSL_CTX_set_info_callback(ssl->ctx, ngx_ssl_info_callback); | 188 SSL_CTX_set_info_callback(ssl->ctx, ngx_ssl_info_callback); |