Mercurial > hg > nginx-vendor-current
comparison src/event/ngx_event_openssl.c @ 678:981b4c44593b NGINX_1_3_2
nginx 1.3.2
*) Change: the "single" parameter of the "keepalive" directive is now
ignored.
*) Change: SSL compression is now disabled when using all versions of
OpenSSL, including ones prior to 1.0.0.
*) Feature: it is now possible to use the "ip_hash" directive to balance
IPv6 clients.
*) Feature: the $status variable can now be used not only in the
"log_format" directive.
*) Bugfix: a segmentation fault might occur in a worker process on
shutdown if the "resolver" directive was used.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_mp4_module was used.
*) Bugfix: in the ngx_http_mp4_module.
*) Bugfix: a segmentation fault might occur in a worker process if
conflicting wildcard server names were used.
*) Bugfix: nginx might be terminated abnormally on a SIGBUS signal on
ARM platform.
*) Bugfix: an alert "sendmsg() failed (9: Bad file number)" on HP-UX
while reconfiguration.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 26 Jun 2012 00:00:00 +0400 |
parents | bfa81a0490a2 |
children | f31b19fe7f48 |
comparison
equal
deleted
inserted
replaced
677:47f0934d8824 | 678:981b4c44593b |
---|---|
91 | 91 |
92 SSL_library_init(); | 92 SSL_library_init(); |
93 SSL_load_error_strings(); | 93 SSL_load_error_strings(); |
94 | 94 |
95 OpenSSL_add_all_algorithms(); | 95 OpenSSL_add_all_algorithms(); |
96 | |
97 #ifndef SSL_OP_NO_COMPRESSION | |
98 { | |
99 /* | |
100 * Disable gzip compression in OpenSSL prior to 1.0.0 version, | |
101 * this saves about 522K per connection. | |
102 */ | |
103 int i, n; | |
104 STACK_OF(SSL_COMP) *ssl_comp_methods; | |
105 | |
106 ssl_comp_methods = SSL_COMP_get_compression_methods(); | |
107 n = sk_SSL_COMP_num(ssl_comp_methods); | |
108 | |
109 for (i = 0; i < n; i++) { | |
110 (void) sk_SSL_COMP_delete(ssl_comp_methods, i); | |
111 } | |
112 } | |
113 #endif | |
96 | 114 |
97 ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL); | 115 ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL); |
98 | 116 |
99 if (ngx_ssl_connection_index == -1) { | 117 if (ngx_ssl_connection_index == -1) { |
100 ngx_ssl_error(NGX_LOG_ALERT, log, 0, "SSL_get_ex_new_index() failed"); | 118 ngx_ssl_error(NGX_LOG_ALERT, log, 0, "SSL_get_ex_new_index() failed"); |