> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Subject: RE: Tomcat 6.0 always uses default host in multi-host config
> 
> Or is it done regardless on each request anyway?

As far as I can tell, the call to InetAddress.getHostName() is done only when 
useIPVHosts is true.

> Where does localName normally get set above this code?

It's not set, other than in that one place.  So when useIPVHosts is false, the 
value will be null.

> It's beginning to sound like it's a good idea to define both 
> the expected DNS name and IP address for a <Host> if setting
> useIPVHosts=true.

Yes, especially if the DNS resolution is not guaranteed to be 100% reliable.  
(Is it ever?)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to