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

Issue 9572018: [net] Ensure aborted HostResolverImpl::Jobs release slots in the dispatcher. (Closed)

Created:
8 years, 9 months ago by szym
Modified:
8 years, 9 months ago
Reviewers:
cbentzel, eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Visibility:
Public.

Description

[net] Ensure aborted HostResolverImpl::Jobs release slots in the dispatcher. Also re-introduces a missing life check in case a request callback deletes the HostResolver. R=eroman@chromium.org,cbentzel@chromium.org BUG=115399 TEST=./net_unittest --gtest_filter=HostResolverImplTest.CanceledRequestsReleaseJobSlots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124783

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reorder: dispatch then Abort. #

Total comments: 3

Patch Set 3 : Fixed NetLog bug for cancelled Jobs. #

Patch Set 4 : Removed virtual dispatch from ctor.' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -61 lines) Patch
M net/base/host_resolver_impl.cc View 1 2 3 8 chunks +19 lines, -7 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 9 chunks +167 lines, -54 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
szym
8 years, 9 months ago (2012-03-02 18:24:13 UTC) #1
szym
The new test times out before the (one-line) fix and should run smoothly after the ...
8 years, 9 months ago (2012-03-02 18:29:38 UTC) #2
cbentzel
It looks like there are two changes - one for CancelRequest and one for AbortAllInProgressJobs. ...
8 years, 9 months ago (2012-03-02 18:47:24 UTC) #3
szym
On 2012/03/02 18:47:24, cbentzel wrote: > It looks like there are two changes - one ...
8 years, 9 months ago (2012-03-02 18:51:36 UTC) #4
szym
On 2012/03/02 18:47:24, cbentzel wrote: > It looks like there are two changes - one ...
8 years, 9 months ago (2012-03-02 18:51:46 UTC) #5
cbentzel
Going through the test now. We also did a lot of chatting over IM. http://codereview.chromium.org/9572018/diff/1/net/base/host_resolver_impl.cc ...
8 years, 9 months ago (2012-03-02 19:05:02 UTC) #6
szym
http://codereview.chromium.org/9572018/diff/1/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9572018/diff/1/net/base/host_resolver_impl.cc#newcode1576 net/base/host_resolver_impl.cc:1576: dispatcher_.OnJobFinished(); On 2012/03/02 19:05:02, cbentzel wrote: > Does the ...
8 years, 9 months ago (2012-03-02 19:09:30 UTC) #7
cbentzel
On 2012/03/02 19:09:30, szym wrote: > http://codereview.chromium.org/9572018/diff/1/net/base/host_resolver_impl.cc > File net/base/host_resolver_impl.cc (right): > > http://codereview.chromium.org/9572018/diff/1/net/base/host_resolver_impl.cc#newcode1576 > ...
8 years, 9 months ago (2012-03-02 19:13:17 UTC) #8
szym
Done. On Fri, Mar 2, 2012 at 2:13 PM, <cbentzel@chromium.org> wrote: > On 2012/03/02 19:09:30, ...
8 years, 9 months ago (2012-03-02 19:18:40 UTC) #9
eroman
lgtm
8 years, 9 months ago (2012-03-02 19:42:38 UTC) #10
cbentzel
Still going through this some more. Another reason I like doing the dispatch followed by ...
8 years, 9 months ago (2012-03-02 19:45:27 UTC) #11
cbentzel
http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc#newcode1575 net/base/host_resolver_impl.cc:1575: if (job->is_running()) { I asked over email - but ...
8 years, 9 months ago (2012-03-02 19:46:49 UTC) #12
szym
On 2012/03/02 19:46:49, cbentzel wrote: > http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc > File net/base/host_resolver_impl.cc (right): > > http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc#newcode1575 > ...
8 years, 9 months ago (2012-03-02 19:54:04 UTC) #13
cbentzel
On 2012/03/02 19:54:04, szym wrote: > On 2012/03/02 19:46:49, cbentzel wrote: > > > http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc ...
8 years, 9 months ago (2012-03-02 19:58:21 UTC) #14
cbentzel
LGTM - I saw the moving Schedule out of the constructor patch. Thanks for getting ...
8 years, 9 months ago (2012-03-02 20:02:40 UTC) #15
szym
> Yes - I was just worried that we may not decrease this counter in ...
8 years, 9 months ago (2012-03-02 20:03:21 UTC) #16
szym
http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9572018/diff/1004/net/base/host_resolver_impl.cc#newcode1577 net/base/host_resolver_impl.cc:1577: job->Abort(); On 2012/03/02 20:02:40, cbentzel wrote: > FYI: I ...
8 years, 9 months ago (2012-03-02 20:05:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9572018/6002
8 years, 9 months ago (2012-03-02 20:06:16 UTC) #18
eroman
Yeah, thanks for owning this and the really fast turn-around time! Can't believe you were ...
8 years, 9 months ago (2012-03-02 20:07:08 UTC) #19
szym
On 2012/03/02 20:07:08, eroman wrote: > Yeah, thanks for owning this and the really fast ...
8 years, 9 months ago (2012-03-02 20:11:40 UTC) #20
commit-bot: I haz the power
8 years, 9 months ago (2012-03-03 00:04:57 UTC) #21
Change committed as 124783

Powered by Google App Engine
This is Rietveld 408576698