RFR: 8304885: Reuse stale data to improve DNS resolver resiliency [v11]
Sergey Bylokhov
serb at openjdk.org
Tue May 30 16:03:02 UTC 2023
On Mon, 29 May 2023 16:16:28 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> In the "java.security" file we documented the default value of the property in that file but it is commented out. Right now the new property specified in the same way as the old "networkaddress.cache.ttl", see [net-properties.html](https://github.com/openjdk/jdk/pull/13285/files/ce595f74f511553274c9da254d53b368abe44408#diff-21ffe1f9a665c0f70cc9888d2da937a2a77fadfdacc23d0bd59506595e668c5fR267) and [InetAddress.java](https://github.com/openjdk/jdk/pull/13285/files/a856cd36eba1efacbc0f95918ac6aa2712cab870#diff-55d4acc64110543896bf6c289d6247cded986edfe9ccce3a9bca88a197711d58R204)
>
> In the [InetAddress.java](https://github.com/openjdk/jdk/pull/13285/files/a856cd36eba1efacbc0f95918ac6aa2712cab870#diff-55d4acc64110543896bf6c289d6247cded986edfe9ccce3a9bca88a197711d58R204)
>
> * <dt><b>networkaddress.cache.ttl</b></dt>
> * <dd>Indicates the caching policy for successful name lookups from
> * the name service. The value is specified as an integer to indicate
> * the number of seconds to cache the successful lookup. The default
> * setting is to cache for an implementation specific period of time.
>
> In the [java.security](https://github.com/openjdk/jdk/pull/13285/files/ce595f74f511553274c9da254d53b368abe44408#diff-)
>
> # default value is forever (FOREVER). For security reasons, this
> # caching is made forever when a security manager is set. When a security
> # manager is not set, the default behavior in this implementation
> # is to cache for 30 seconds.
Such specification allows changing the default property in JDK bundle w/o changing the doc.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13285#discussion_r1209450987
More information about the net-dev
mailing list