Merge of r4697: disabled gzip in OpenSSL prior to 1.0.0.
Disabled gzip compression in OpenSSL prior to 1.0.0 version.
This saves about 522K per connection.
Maxim Dounin
9 years ago
92 | 92 | SSL_load_error_strings(); |
93 | 93 | |
94 | 94 | 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 | |
95 | 113 | |
96 | 114 | ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL); |
97 | 115 |