forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize for non-address results in HostResolverImpl
Now extensively using HostCache::Entry internally (but only internally to preserve flexibility of HostCache) as a generalized results container within HostResolverImpl. Added some needed setter/merge functionality to Entry for that purpose. Many methods within the resolver changed to use Entry for consistency even if they only ever deal with address results, eg ResolveAsIP(). Slightly modified results port-setting functionality to only set port to an input port (from |host.port()|) if the port in the results is 0 (where before it would set it whenever it wasn't equal to the input port). This will be necessary eg for SRV support where DNS provides a specific port that needs to be maintained in the results. Also cleaned up the port setting to consistently only ever happen just before setting results on the RequestImpl and having 0 or a DNS-provided port until then. Bug: 846423 Change-Id: I679c0ac915e0f81b49adb5ee769f250be49c9c90 Reviewed-on: https://chromium-review.googlesource.com/c/1340835 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Eric Orth <ericorth@chromium.org> Cr-Commit-Position: refs/heads/master@{#611963}
- Loading branch information
Eric Orth
authored and
Commit Bot
committed
Nov 29, 2018
1 parent
fc06c16
commit 07ee5f0
Showing
11 changed files
with
924 additions
and
516 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
Oops, something went wrong.