-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential DNS cache invalidation across different EventLoops (#14147
) Motivation: By default, `DnsAddressResolverGroup` sets up a separate `DNSCache` for each `EventLoop`. This can lead to cache invalidation when performing DNS resolution across different EventLoops due to the potential absence of cached DNS records. Modification: - initializing the DNSCache in `DnsNameResolverBuilder` during `DnsAddressResolverGroup` initialization to enable sharing of DNSCache among EventLoops under the same `DnsAddressResolverGroup`. - Add unit test: testSharedDNSCacheAcrossEventLoops Result: Fixes #14046. --------- Co-authored-by: Norman Maurer <norman_maurer@apple.com> Co-authored-by: Bryce Anderson <bryce_anderson@apple.com>
- Loading branch information
1 parent
d1f22c2
commit d05af24
Showing
3 changed files
with
77 additions
and
10 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