On Mon, 30 Sep 2024 20:30:57 GMT, Mark Sheppard <mshep...@openjdk.org> wrote:
> I think that if there is a PortUnreachable thrown, during DnsClient.query > processing from the doUdpQuery, then the timeout may expire early ... if I've > interpreted the outer loop processing correctly The `DnsClient.query` marks server as misconfigured (not suitable for further retries) in scenarios when `PortUnreachable` is caught (see `doNotRetry`). And since the timeout/retries are specified per server it is expected for the timeout to expire early. For scenarios with one server and `PortUnreachable` exception - the `DnsClient.query` will throw the `CommunicationException` with `PortUnreachable` set as its cause. ------------- PR Comment: https://git.openjdk.org/jdk/pull/20892#issuecomment-2388641756