Klaus Demo nginx / 992a4d1
Disabled gzip compression in OpenSSL prior to 1.0.0 version. This saves about 522K per connection. Igor Sysoev 10 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9292 SSL_load_error_strings();
9393
9494 OpenSSL_add_all_algorithms();
95
96 #ifndef SSL_OP_NO_COMPRESSION
97 {
98 /*
99 * Disable gzip compression in OpenSSL prior to 1.0.0 version,
100 * this saves about 522K per connection.
101 */
102 int i, n;
103 STACK_OF(SSL_COMP) *ssl_comp_methods;
104
105 ssl_comp_methods = SSL_COMP_get_compression_methods();
106 n = sk_SSL_COMP_num(ssl_comp_methods);
107
108 for (i = 0; i < n; i++) {
109 (void) sk_SSL_COMP_delete(ssl_comp_methods, i);
110 }
111 }
112 #endif
95113
96114 ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);
97115