Skip to content

Commit dfd7e07

Browse files
hsbtclaude
andcommitted
Rescue SystemCallError in the TLS test server
When the client rejects the certificate and closes the socket with part of the handshake still unread, Windows resets the connection and SSL_accept on the server thread raises Errno::ECONNRESET instead of SSLError. It escaped the thread and teardown re-raised it as a test error. https://github.com/ruby/ruby/actions/runs/36208437463/job/108309842285 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c2e9102 commit dfd7e07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/net/smtp/test_sslcontext.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def teardown
5252
sock = OpenSSL::SSL::SSLSocket.new(sock, ctx)
5353
sock.sync_close = true
5454
sock.accept
55-
rescue OpenSSL::SSL::SSLError
55+
rescue OpenSSL::SSL::SSLError, SystemCallError
5656
# The client must be raising SSLError, too
5757
end
5858

0 commit comments

Comments
 (0)