Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Issue 7492059: HostResolver: don't interpret NULL callback argument as a request to do synchronous resolution. (Closed)

Created:
9 years, 5 months ago by agayev
Modified:
9 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

HostResolver: don't interpret NULL callback argument as a request to do synchronous resolution. BUG=90547, 60149 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95509

Patch Set 1 #

Patch Set 2 : Added missing header. #

Patch Set 3 : Fixed comments. #

Patch Set 4 : Merged with the tree. #

Patch Set 5 : Fixed unimplemented. #

Patch Set 6 : Fixed a few more cases. #

Patch Set 7 : IP resolution works with ResolveCache as well. #

Patch Set 8 : Added cache lookup to netlog. #

Patch Set 9 : Fixed two failing tests. #

Patch Set 10 : Merged with trunk #

Patch Set 11 : Merged with trunk #

Patch Set 12 : Fixed trunk and merged with it. #

Total comments: 13

Patch Set 13 : got rid of netlog stuff. #

Patch Set 14 : Removed more netlog stuff. #

Patch Set 15 : Fixed more comments. #

Patch Set 16 : nits. #

Patch Set 17 : Merged common code from Resolve and ResolveFromCache to a single function. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -198 lines) Patch
M net/base/host_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +12 lines, -12 lines 0 comments Download
M net/base/host_resolver.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +37 lines, -7 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +106 lines, -73 lines 3 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 6 chunks +14 lines, -10 lines 0 comments Download
M net/base/mapped_host_resolver.h View 1 chunk +8 lines, -5 lines 0 comments Download
M net/base/mapped_host_resolver.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -0 lines 0 comments Download
M net/base/mock_host_resolver.h View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M net/base/mock_host_resolver.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M net/base/net_error_list.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/single_request_host_resolver.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/single_request_host_resolver_unittest.cc View 1 2 3 4 2 chunks +11 lines, -4 lines 0 comments Download
M net/dns/async_host_resolver.h View 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M net/dns/async_host_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +62 lines, -55 lines 0 comments Download
M net/dns/async_host_resolver_unittest.cc View 1 2 3 4 5 6 10 11 12 13 14 2 chunks +3 lines, -8 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -9 lines 0 comments Download
M net/proxy/sync_host_resolver_bridge_unittest.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -4 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
agayev
What do you guys think of this API? I thought I could finish bug 90547 ...
9 years, 4 months ago (2011-07-28 23:01:05 UTC) #1
eroman
I like this approach of having a separate API. Two high-level comments before I dive ...
9 years, 4 months ago (2011-07-28 23:15:40 UTC) #2
agayev
On 2011/07/28 23:15:40, eroman wrote: > I like this approach of having a separate API. ...
9 years, 4 months ago (2011-07-29 15:34:19 UTC) #3
agayev
Okay, I wrote above without actually reading the code (just by looking at the comments) ...
9 years, 4 months ago (2011-07-29 16:19:38 UTC) #4
agayev
We can return either ERR_CACHE_MISS (which would make sense for a method named ResolveFromCache) or ...
9 years, 4 months ago (2011-07-29 16:38:36 UTC) #5
cbentzel
I'm wondering [without looking at all] if we could push down the AddressList for the ...
9 years, 4 months ago (2011-07-29 19:55:32 UTC) #6
cbentzel
+rtenneti, who's been working on the SPDY session IP pooling. Do you know why the ...
9 years, 4 months ago (2011-07-29 20:11:39 UTC) #7
rtenneti
spdy_session_pool changes look ok to me. LGTM.
9 years, 4 months ago (2011-07-30 23:06:32 UTC) #8
agayev
rtenetti: I think you missed the question cbentzel asked. Can you please take a look ...
9 years, 4 months ago (2011-08-01 15:12:54 UTC) #9
ramant (doing other things)
>Do you know why the resolution can't go over-the-wire [or be >async] for the SPDY ...
9 years, 4 months ago (2011-08-01 21:10:32 UTC) #10
agayev
willchan is on vacation, mbelshe is not at google any more. Followings are the options, ...
9 years, 4 months ago (2011-08-02 14:35:30 UTC) #11
cbentzel
I'm OK with b) On Tue, Aug 2, 2011 at 10:35 AM, <agayev@chromium.org> wrote: > ...
9 years, 4 months ago (2011-08-02 17:12:25 UTC) #12
agayev
It turned out that I need this to go in before I could implement a ...
9 years, 4 months ago (2011-08-04 16:26:21 UTC) #13
cbentzel
http://codereview.chromium.org/7492059/diff/20025/net/base/host_resolver.h File net/base/host_resolver.h (right): http://codereview.chromium.org/7492059/diff/20025/net/base/host_resolver.h#newcode161 net/base/host_resolver.h:161: // Resolves the given hostname (or IP address literal), ...
9 years, 4 months ago (2011-08-04 18:55:22 UTC) #14
agayev
http://codereview.chromium.org/7492059/diff/20025/net/base/host_resolver.h File net/base/host_resolver.h (right): http://codereview.chromium.org/7492059/diff/20025/net/base/host_resolver.h#newcode161 net/base/host_resolver.h:161: // Resolves the given hostname (or IP address literal), ...
9 years, 4 months ago (2011-08-04 20:18:00 UTC) #15
cbentzel
LGTM http://codereview.chromium.org/7492059/diff/21034/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/7492059/diff/21034/net/base/host_resolver_impl.cc#newcode1193 net/base/host_resolver_impl.cc:1193: const Key& key, Ah, I guess the OnStartRequest/OnFinishRequest ...
9 years, 4 months ago (2011-08-04 21:18:36 UTC) #16
wtc
9 years, 2 months ago (2011-10-11 02:42:53 UTC) #17
agayev, cbentzel: I found two problems with the two NetLog
parameters of HostResolverImpl::ResolveHelper.

http://codereview.chromium.org/7492059/diff/21034/net/base/host_resolver_impl.cc
File net/base/host_resolver_impl.cc (right):

http://codereview.chromium.org/7492059/diff/21034/net/base/host_resolver_impl...
net/base/host_resolver_impl.cc:1155: source_net_log, request_net_log);

This ResolveHelper call passes source_net_log, request_net_log
in the opposite order of the function's prototype.

I wrote a CL http://codereview.chromium.org/8220028 to
fix this, assuming the order in the function's prototype
is right.  But I suspect the function prototype may have
the wrong order, because the source_net_log, request_net_log
order is prevalent in this file.

http://codereview.chromium.org/7492059/diff/21034/net/base/host_resolver_impl...
net/base/host_resolver_impl.cc:1197: const BoundNetLog& source_net_log) {

ResolveHelper does not use its source_net_log argument.

Powered by Google App Engine
This is Rietveld 408576698