Skip to content

Commit

Permalink
Fix leaking file descriptor for Ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Dec 31, 2024
1 parent 697c22e commit 585b31c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/socket/socket/connect_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
client.connect(address)
rescue Errno::ECONNREFUSED
skip "Outgoing packets may be filtered"
ensure
client.close if client
end
}.should raise_error(IO::TimeoutError)
end
Expand Down

0 comments on commit 585b31c

Please sign in to comment.