-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run compiler or stdlib specs with IPv6 disabled #15033
Comments
Some networking specs do
"::" as the host. These specs ultimately fail when IPv6 is disabled. Is there any meaningful difference between "::" and "0.0.0.0" in this context? Was thinking we could update these usages to use the IPv4 variant to avoid needing extra IPv6 checks.
|
Yes |
We want the former behavior by default, not the latter. I'm wondering in which context is ipv6 disabled? I mean, we're in 2024. |
Yea that makes sense in the real code, but to be clear I was more so proposing just changing it in these specs. E.g. it "don't sync_close" do
TCPServer.open(0) do |tcp_server|
context = OpenSSL::SSL::Context::Server.new
ssl_server = OpenSSL::SSL::Server.new(tcp_server, context, sync_close: false)
ssl_server.context.should eq context
ssl_server.close
tcp_server.closed?.should be_false
end
end Does it really matter if we bind an IPv6 vs IPv4 in this context? |
It appears the behaviour of Anyway, I'm wondering if using an unspecified address is even good in the first place. |
At some point in the past while debugging something else, I ended up adding the
ipv6.disable=1
kernel parameter. This seems to break the compiler and stdlib specs due to:We are checking if IPv6 is enabled via
SocketSpecHelper.supports_ipv6?
, but we're only catchingSocket::BindError
whereas the error raised here is aSocket::Error
. Will also need to addressunused_local_port
always using IPv6 as well.The text was updated successfully, but these errors were encountered: