Code Review 7012768: InetAddress lookupTable leaks/deadlocks when using unsupported name service spi

Chris Hegarty chris.hegarty at oracle.com
Thu Jan 20 03:26:23 PST 2011


Michael, Alan,

There is an issue in InetAddress.getAddressesFromNameService, whereby if 
the nameservice provider throws an unchecked exception it leaves the 
host being looked up in the lookupTable. This will cause any further 
lookups of that host to block and wait forever.

Once a host is added to the lookupTable, through checkLookupTable(host), 
it should always be removed after the attempted lookup (whether 
successful or not).

http://cr.openjdk.java.net/~chegar/7012768/webrev.00/webrev/

-Chris.



More information about the net-dev mailing list