EADDRINUSE when binding TCP socket with globally disabled IPv6 #4976
Milestone
Comments
headius
added a commit
that referenced
this issue
Jan 25, 2018
The error message now looks like this:
|
Oh cool! Thanks for fixing that. |
It sounds difficult to disable IPv6 for a specific test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: