This is the mail archive of the
mailing list for the Java project.
Re: java.net: Classpath vs. libgcj Comparison
> Unless the classpath code somehow avoids these problems, I don't
> recommend caching address lookups.
Sun's "solution" was to add an implementation specific property,
sun.net.inetaddr.ttl, which you set to the number of seconds to cache
addresses for (or -1 for forever).
I looked this up in Sun's bug parade a while ago because I couldn't
believe they actually force implementations to cache in the spec.
Perhaps this was a mistake.
Anthony Green Red Hat