Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test/mri/open-uri/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,15 @@ def start
end
end

# NOTE: patched by JRuby
# NOTE: patched by JRuby: CRuby kills the thread before closing the socket, and
# JRuby had that commented out, so the close landed under a blocked accept. The
# thread's own failure still reaches the test through the harness's join.
def shutdown
@thread.kill
begin
@thread.join
rescue Exception
end
@server.close
end

Expand Down
Loading