RFR: 8236413: AbstractConnectTimeout should tolerate both NoRouteToHostException and UnresolvedAddressException

Aleksei Efimov aefimov at openjdk.java.net
Mon Dec 7 16:32:13 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.

Hi Daniel,
The changes look good to me ��

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

Marked as reviewed by aefimov (Committer).

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


More information about the net-dev mailing list