Disabling OpenSSL compression can save memory since zlib buffers
enforce a rather large per-connection overhead. For
memory-constrained systems that have OpenSSL built against zlib,
there can be a drastic reduction in memory usage with 1000 open
connections:
The above was generated with openssl 1.0.0.d-3 on Debian testing
(x86_64). The NOCOMP environment variable controls compression
in the attached script.
If you prefer: git pull git://bogomips.org/ruby openssl-no-compression
This issue was solved with changeset r32973.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
ext/openssl/ossl_ssl.c: Support disabling OpenSSL compression.
test/openssl/test_ssl.rb: Add a test for it.
Thanks to Eric Wong for the patch.
[Ruby 1.9 - Feature #5183] [ruby-core:38911]