java.net: Classpath vs. libgcj Comparison
Andrew Haley
aph@pasanda.cygnus.co.uk
Mon Apr 17 00:58:00 GMT 2000
> From: Matt Welsh <mdw@cs.berkeley.edu>
> Date: 2000年4月16日 22:13:22 -0700
>> Bryce McKinlay <bryce@albatross.co.nz> writes:
> > I disagree with this. Caching inside InetAddress is a misfeature. The underly
> > ing OS already caches DNS entries.
>> Really? Do *all* underlying O/S's cache Internet address lookups?
No, they don't. Recently I tracked down a problem with an overloaded
name server to a room full of machines running a rival OS. :-) Each
machine was doing several identical DNS lookups every second!
> My guess was that this was added to java.net.InetAddress to mask any
> incompatibilities between operating systems in this regard.
That's possibly true, but that doesn't excuse an incorrect
implementation; a cache that doesn't obey the expiration times is
wrong.
Andrew.
More information about the Java
mailing list