Welcome! Log In Create A New Profile

Advanced

Re: Bad Decompression error after default ssl_session_timeout

May 23, 2012 05:02AM
On Wed, May 23, 2012 at 03:03:33AM -0400, lima wrote:
> Thanks for the reply.
>
> The first solution has solved the problem!! unfortunately we cannot make
> proxy_ssl_session_reuse off, as it may affect the performance. And the
> second option given by you is also cannot be done as the system team has
> some concern over it. The Openssl version we are using is the latest one
> supported by the CentOS version we are using.
>
> Is it possible to configure/compile nginx without zlib support?
>
> Again, is the gzip module creating problem here? We tried with gzip on
> and off but still it was giving the same problem.

Try the attached patch.


--
Igor Sysoev
Index: src/event/ngx_event_openssl.c
===================================================================
--- src/event/ngx_event_openssl.c (revision 4644)
+++ src/event/ngx_event_openssl.c (working copy)
@@ -94,6 +94,24 @@

OpenSSL_add_all_algorithms();

+#ifndef SSL_OP_NO_COMPRESSION
+ {
+ /*
+ * Disable gzip compression in OpenSSL prior to 1.0.0 version,
+ * this saves about 522K per connection.
+ */
+ int i, n;
+ STACK_OF(SSL_COMP) *ssl_comp_methods;
+
+ ssl_comp_methods = SSL_COMP_get_compression_methods();
+ n = sk_SSL_COMP_num(ssl_comp_methods);
+
+ for (i = 0; i < n; i++) {
+ (void) sk_SSL_COMP_delete(ssl_comp_methods, i);
+ }
+ }
+#endif
+
ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);

if (ngx_ssl_connection_index == -1) {
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Bad Decompression error after default ssl_session_timeout

lima May 22, 2012 03:15AM

Re: Bad Decompression error after default ssl_session_timeout

Maxim Dounin May 22, 2012 01:28PM

Re: Bad Decompression error after default ssl_session_timeout

lima May 23, 2012 03:03AM

Re: Bad Decompression error after default ssl_session_timeout

Maxim Dounin May 23, 2012 04:26AM

Re: Bad Decompression error after default ssl_session_timeout

Igor Sysoev May 23, 2012 05:02AM

Re: Bad Decompression error after default ssl_session_timeout

lima May 23, 2012 05:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready