mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
assert_handshake_error is useful for checking handshake failures triggered by the peer, as the underlying socket may be closed prematurely, leading to different exceptions depending on the platform and timing. However, when the local end aborts a handshake, the only possible exception is OpenSSL::SSL::SSLError. Use stricter assertions in such cases. https://github.com/ruby/openssl/commit/637ba65818