Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2020598 | 1.1.7 | Patrick Ong | P2 | Resolved | Fixed | b01 |
Name: diC59631 Date: 05/13/98
The code for InetAdress.getAllByName shows that
it caches the fact that it failed to lookup a
name so it can avoid the lookup in the future.
The problem is that isn't always the right thing
to do. If you're on a machine with dialup
access, sometimes the dialup to the ISP will fail
preventing any lookups from suceeding. If you
retry the dialup connection and it succeeds you
still can't resolve the hosts because the failure
from the previous attempt was cached. I suggest
either not caching failures at all or providing
some system property to selectively disable failure
caching.
(Review ID: 29129)
======================================================================
- backported by
-
JDK-2020598 InetAddress.getAllByName caches failures unconditionally without timing out
- Resolved