This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: Caching of IP address lookups
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: java-patches at gcc dot gnu dot org
- Date: 23 Mar 2004 10:57:17 -0700
- Subject: Re: Patch: Caching of IP address lookups
- References: <200403202149.28700.konqueror@gmx.de>
- Reply-to: tromey at redhat dot com
>>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:
Michael> I merged the code in classpath's java.net.InetAddress that handles
Michael> caching of lookup results.
Michael> Please review and comment. Okay for trunk ?
I think this code is incorrect. DNS controls the length of time that
you can cache lookups, as I understand it this is done on a per-name
basis. So having a single cache period is incorrect.
This could be done in a valid way by having code that talks to DNS and
caches correctly. That's a lot of work, though.
I suspect that instead we should remove this code from Classpath, or
at least disable it by default.
Tom