Description[net/dns] Add test DualFamilyLocalhost and fix it when DnsClient enabled.
On some platforms, listening on "localhost" binds to the IPv6 loopback
(::1), even if there's no global IPv6 connectivity. In such situations,
HostResolverImpl restricts lookups to IPv4 (AF_INET) for performance
reasons, but then navigating to http://localhost results in "connection
refused".
HostResolverProc has a workaround for this situation. This CL adds a
test for this behavior and replicates the workaround in
HostResolverImpl::ServeFromHosts (for the built-in asynchronous DNS).
BUG=224215
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194663
Patch Set 1 #Patch Set 2 : use proper resolver flags #Patch Set 3 : make net_export_private #Patch Set 4 : Implement the needed logic in ServeFromHosts #
Total comments: 19
Patch Set 5 : responded to review #
Total comments: 1
Patch Set 6 : test only IPv4 loopback #
Messages
Total messages: 5 (0 generated)
|