-
Notifications
You must be signed in to change notification settings - Fork 33
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
java.net.preferIPv4Stack causing delays on IPv6 enabled hosts #760
Comments
it's there since years, I guess it's a workaround for hosts with IPv6 not properly configured, but the proper fix is usually to disable IPv6 via I guess we can do some cleanup of all the |
Setting |
I agree that disabling IPv6 at the OS level through |
I apologize for any confusion caused by my previous message: my intention was not to propose a global disabling of IPv6 in the playbook. Instead, I was referencing it as a potential solution for users encountering issues related to IPv6 misconfiguration on their own hosts. The primary focus remains on resolving the existing issue by removing all occurrences of |
tracked in OPSEXP-2536 |
should be resolved in 2.6.0 |
Configuring NGINX with
locahost
has the side effect of causing errors when trying the IPV6[::1]
loopback address, which is the preferred by the system, because Tomcat is only listenting on IPv4 because of the use of thejava.net.preferIPv4Stack
directive. Connections eventually succeed because NGINX then tries the127.0.0.1
address that is resolved too, but it is at minimum an annoyance that polutes the error log, and can be seen too as a performance degradation issue, though minimal.We'd like to know if there's some profound reason for explicitly restricting Tomcat to use IPv4, before goin on and removing that flag to make IPv6 connections work.
Originally posted by @jalvarezferr in #758 (comment)
The text was updated successfully, but these errors were encountered: