One note: With `--disable-ipv6`, `Socket.getifaddrs` can still return IPv6 addresses. Since it exposes the interface information obtained directly from the OS, I think it is fine to leave this behavior as is.shioimm (Misaki Shioi)
Thank you for the detailed report. I think this approach is reasonable for making `--disable-ipv6` consistently IPv4-only. I think it would be best if you could open a pull request from your branch. (In that case, please include [B...shioimm (Misaki Shioi)
As you pointed out, changing the exception classes raised by `TCPSocket.new` and `Socket.tcp` does have user-facing impact, and perhaps this change should have been approached more carefully. However, I believe that the fact that Socket...shioimm (Misaki Shioi)
- [Bug #21803] `Addrinfo#connect_internal` should raise `IO::TimeoutError` on user-specified timeouts - I’d like to make `Socket.tcp` consistently raise `IO::TimeoutError` when a user-specified timeout occurs, rather than raising `Err...shioimm (Misaki Shioi)
## Background & Proposal `Addrinfo#connect_internal` is a core internal method that is called by both `Addrinfo#connect` and `Addrinfo#connect_from`. It receives a user-specified timeout value from these methods and currently raises ...shioimm (Misaki Shioi)
I appreciate your proposal, but it’s difficult to go along with it. While the proposal is aimed at improving the convenience of `TCPSocket.open`, changing its implementation just for compatibility with Ruby 3.4 and below feels a bit too...shioimm (Misaki Shioi)