Re: InetAddress should utilize networkaddress.cache.ttl for getLocalHost() too

2012-07-11 Thread Alan Bateman
On 05/07/2012 07:10, Deven You wrote: Hi All, I noticed that InetAddress.getLocalHost() uses cache to improve the performance. However the default implementation is caching local host within 5 seconds. From the spec, networkaddress.cache.ttl should be used to control the cache behaviour and

hg: jdk8/tl/jdk: 6966259: Make PrincipalName and Realm immutable

2012-07-11 Thread weijun . wang
Changeset: 79b63e8eceda Author:weijun Date: 2012-07-11 17:10 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/79b63e8eceda 6966259: Make PrincipalName and Realm immutable Reviewed-by: xuelei ! src/share/classes/javax/security/auth/kerberos/KerberosPrincipal.java ! src/share/cl

Re: InetAddress should utilize networkaddress.cache.ttl for getLocalHost() too

2012-07-11 Thread Michael McMahon
On 11/07/12 08:00, Alan Bateman wrote: On 05/07/2012 07:10, Deven You wrote: Hi All, I noticed that InetAddress.getLocalHost() uses cache to improve the performance. However the default implementation is caching local host within 5 seconds. From the spec, networkaddress.cache.ttl should be