https://bz.apache.org/bugzilla/show_bug.cgi?id=65301
Bug ID: 65301 Summary: the enableLookups configuration is not fully active Product: Tomcat 9 Version: 9.0.41 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: wan...@bonree.com Target Milestone: ----- Created attachment 37857 --> https://bz.apache.org/bugzilla/attachment.cgi?id=37857&action=edit key line when I use org.apache.catalina.valves.RemoteIpValve to get real protocol from "X-Forwarded-Proto", sometimes it take too many times to search local machine hostname. the thread dump as follows : "http-nio-8080-exec-1" #85 daemon prio=5 os_prio=0 tid=0x00007f0ef8fdd000 nid=0x79 runnable [0x00007f0e8d1d4000] java.lang.Thread.State: RUNNABLE at java.net.Inet4AddressImpl.getHostByAddr(Native Method) at java.net.InetAddress$2.getHostByAddr(InetAddress.java:932) at java.net.InetAddress.getHostFromNameService(InetAddress.java:617) at java.net.InetAddress.getHostName(InetAddress.java:559) at java.net.InetAddress.getHostName(InetAddress.java:531) at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.populateLocalName(NioEndpoint.java:1354) at org.apache.tomcat.util.net.SocketWrapperBase.getLocalName(SocketWrapperBase.java:275) at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:472) at org.apache.coyote.Request.action(Request.java:432) at org.apache.catalina.connector.Request.getLocalName(Request.java:1331) at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:612) when I see org.apache.catalina.valves.RemoteIpValve in tomcat , getLocalName methord must search ip from machine dnsserver,why this does not check whether it's(enableLookups) on or not ,like line num 663 in this class. the methord getLoaclName alawys call dns to search local ip. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org