We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4e7c4b + 210ba03 commit a6947feCopy full SHA for a6947fe
test/openssl/test_ssl_session.rb
@@ -277,7 +277,11 @@ def test_ctx_client_session_cb_tls13_exception
277
omit "TLS 1.3 not supported" unless tls13_supported?
278
omit "LibreSSL does not call session_new_cb in TLS 1.3" if libressl?
279
280
- start_server do |port|
+ server_proc = lambda do |ctx, ssl|
281
+ readwrite_loop(ctx, ssl)
282
+ rescue SystemCallError, OpenSSL::SSL::SSLError
283
+ end
284
+ start_server(server_proc: server_proc) do |port|
285
ctx = OpenSSL::SSL::SSLContext.new
286
ctx.min_version = :TLS1_3
287
ctx.session_cache_mode = OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT
0 commit comments