Code Review 7012768: InetAddress lookupTable leaks/deadlocks when using unsupported name service spi
Michael McMahon
michael.x.mcmahon at oracle.com
Thu Jan 20 06:08:15 PST 2011
Chris Hegarty wrote:
> 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.
Looks good.
- Michael.
More information about the net-dev
mailing list