RFR: 8236413: AbstractConnectTimeout should tolerate both NoRouteToHostException and UnresolvedAddressException

Michael McMahon michaelm at openjdk.java.net
Tue Dec 8 16:20:35 UTC 2020


On Fri, 4 Dec 2020 17:41:47 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> The timeout tests extending AbstractConnectTimeout have been relaxed to accept a
> ConnectException wrapping NoRouteToHostException.
> These test have been observed failing intermittently with ConnectException wrapping
> java.nio.channels.UnresolvedAddressException instead - presumably a transient network
> failure caused this other exception to be thrown.
> 
> The test logic should be relaxed to accept UnresolvedAddressException as possible
> cause in ConnectException too.

LGTM

-------------

Marked as reviewed by michaelm (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/1629


More information about the net-dev mailing list