You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43cdac0
Browse filesBrowse the repository at this point in the historyBrowse files
ref(core): Measure the hostname cache TTL on a monotonic ticker (JAVA-579)
HostnameCache stored an absolute expiry built from currentTimeMillis and
compared it against a fresh reading, so a device time change resized the
5h TTL: a backward step extended it by the size of the step, a forward
step expired the cache early.
It now holds a Deadline on a MonotonicTicker. The field also no longer
starts at 0, which on a boot-relative ticker reads as freshly set rather
than as unset, so nothing counts as cached before the first resolve.
The TTL is not a serialized value, so this only changes when the SDK
re-resolves the hostname.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments