From 6ccc5208e2691639cf5e5e9686addb139f3eafeb Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 3 Dec 2026 13:19:57 +0900 Subject: [PATCH] Accept ECONNABORTED in test_keep_alive_server_close The test has failed on Windows CI with Errno::ECONNABORTED since ruby/ruby@b648267513 made the connect there non-blocking. net/http itself handles ECONNABORTED the same way as ECONNRESET. Co-Authored-By: Claude Opus 5.5 --- test/net/http/test_http.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index 5cccb06e..0dde02e3 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -1642,7 +1642,8 @@ def @server.run(sock) end start {|http| - assert_raise(EOFError, Errno::ECONNRESET, IOError) { + # Winsock may report the closed connection as ECONNABORTED. + assert_raise(EOFError, Errno::ECONNRESET, Errno::ECONNABORTED, IOError) { http.get('/') } }