You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Paul Libbrecht <pa...@ags.uni-sb.de> on 2000/06/12 03:37:57 UTC
"localhost" as a host-name
Hi all,
I'd like to address a comment to the Tomcat developpers. This might
have gone into a bug-report form but its currently down.
Here it is, far simple:
the method stopTomcat of the class org.apache.tomcat.startup.Tomcat
requests the socket to the local host using the explicit
new Socket("localhost", portNum)
which, on our Macintoshs who do not assume localhost to be valid
name, triggers a call to some DNS and further to solve... a bit
stupid, especially when you're developping in a closed one machine,
nothing around, network.
May I suggest:
new Socket( InetAddress.getLocalHost(), portNum )
instead. Finally, after having taken the time to get the code, this
worked with us...
Oh, and, btw, as we talk about bug-trackers, what about Tim Endres' BugRats ?
Anyone tried it ?? I think there is or must be a ServletInterface,
email is also provided. Available on GJT.org
Thanks.
Paul