diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-08 22:24:05 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-08 22:37:11 +0900 |
commit | de965374ee85eb9b8475e619bd76307c779d2ba9 (patch) | |
tree | 0fe501614dc619c807b26d4af4ccb417b6ad770b | |
parent | a09d8c78dd30482b6422ad1aea5b802cf879fa98 (diff) | |
download | ruby-openssl-de965374ee85eb9b8475e619bd76307c779d2ba9.tar.gz |
test/test_pair: disable compression
The test cases added by commit 8ed81ff4b0a8 ("test/test_pair: fix
test_write_nonblock{,_no_exceptions}", 2017-09-04) can consume much
memory and time if the OpenSSL supports SSL/TLS compression. Disable it
explicitly.
-rw-r--r-- | test/test_pair.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_pair.rb b/test/test_pair.rb index 7e2a4a63..7daa9288 100644 --- a/test/test_pair.rb +++ b/test/test_pair.rb @@ -24,6 +24,7 @@ module OpenSSL::SSLPairM sctx.cert = @svr_cert sctx.key = @svr_key sctx.tmp_dh_callback = proc { OpenSSL::TestUtils::Fixtures.pkey_dh("dh1024") } + sctx.options |= OpenSSL::SSL::OP_NO_COMPRESSION ssls = OpenSSL::SSL::SSLServer.new(tcps, sctx) ns = ssls.accept ssls.close |