You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is fixed in 788cd5b. @badboy Maybe you can figure out a way to write a spec/test for this? I'm not sure how easy it will be to temporarily disable ipv6 for one test though. cc @eregon
Oh cool! Thanks for fixing that.
IPv6 can be disabled using sysctl net.ipv6.conf.all.disable_ipv6=1 quite easily, but it requires root privileges. That's probably not a good approach for a single test in a larger test suite.
It sounds difficult to disable IPv6 for a specific test.
But maybe we can just test binding a IPv6 address and accept both outcomes (returns 0 or EADDRNOTAVAIL but no other error).
Environment
Provide at least:
jruby 9.1.15.0 (2.3.3) 2017-12-07 929fde8 OpenJDK 64-Bit Server VM 25.144-b01 on 1.8.0_144-b01 +jit [linux-x86_64]
Linux xyz 4.14.12-1-ARCH #1 SMP PREEMPT Fri Jan 5 18:19:34 UTC 2018 x86_64 GNU/Linux
Other relevant info you may wish to add:
sysctl net.ipv6.conf.all.disable_ipv6=1
Expected Behavior
Running the following code snippet:
Long form:
IPv6 is globally disabled on the system:
sysctl net.ipv6.conf.all.disable_ipv6=1
When running the code with MRI (2.5 or 2.4, probably even before that as well) it throws
Errno::EADDRNOTAVAIL
:I expect a similar meaningful exception when running with JRuby
Actual Behavior
When run with JRuby it throws
Errno::EADDRINUSE
with message including "Protocol family unavailable":The text was updated successfully, but these errors were encountered: