-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect TTL of a DNS record for proxy config (#5960)
#### Motivation: From now on, armeria client ignores DNS TTL. Thus the client will keep sending the request to the old proxy. #### Modifications: - Make `InetSocketAddress` mutable to support a feature which update DNS. - Add fields to `xxxProxyConfig` (lastUpdatedTime, Schedulers) - Add a method for DNS update scheduling. - Add create method which supports `refreshInterval` JVM doesn't consider DNS TTL as default. Therefore, client has a intent to DNS update, IMHO, Client should configure JVM options. ``` # java.security networkaddress.cache.ttl=... networkaddress.cache.negative.ttl=... # Command line -Dsun.net.inetaddr.ttl=... ``` #### Result: - Fixes #5843
- Loading branch information
1 parent
b1a09d4
commit fd540d4
Showing
12 changed files
with
339 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.