From de965374ee85eb9b8475e619bd76307c779d2ba9 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Fri, 8 Sep 2017 22:24:05 +0900 Subject: 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. --- test/test_pair.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 -- cgit v1.2.3