RFR: 8339538: Wrong timeout computations in DnsClient [v8]

Aleksei Efimov aefimov at openjdk.org
Wed Oct 2 13:28:42 UTC 2024


On Mon, 30 Sep 2024 20:30:57 GMT, Mark Sheppard <msheppar at 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


More information about the core-libs-dev mailing list