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

Issue 6591030: Add HttpStreamFactory Job orphaning semantics. (Closed)

Created:
9 years, 10 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
Mike Belshe
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add HttpStreamFactory Job orphaning semantics. BUG=54371, 69688 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76389

Patch Set 1 #

Patch Set 2 : Add support for SPDY late binding. #

Total comments: 2

Patch Set 3 : Fix bad merge. Add more late binding :) #

Patch Set 4 : Fix other merge. #

Total comments: 1

Patch Set 5 : Add tests. #

Total comments: 2

Patch Set 6 : Updated comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -65 lines) Patch
M net/http/http_stream_factory_impl.h View 1 2 3 4 5 3 chunks +21 lines, -4 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 chunks +44 lines, -19 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 4 chunks +64 lines, -14 lines 0 comments Download
M net/http/http_stream_factory_impl_request.h View 1 5 chunks +29 lines, -12 lines 0 comments Download
M net/http/http_stream_factory_impl_request.cc View 1 7 chunks +132 lines, -13 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 2 chunks +191 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
willchan no longer on Chromium
This builds on top of my previous changelist that I haven't landed yet (hoping to ...
9 years, 10 months ago (2011-02-27 23:42:32 UTC) #1
willchan no longer on Chromium
Ok, code is all updated. There are probably a lot of tests I should write. ...
9 years, 9 months ago (2011-03-01 00:22:42 UTC) #2
willchan no longer on Chromium
Wow, turns out my code worked out on the first try! I've added two tests ...
9 years, 9 months ago (2011-03-01 03:36:59 UTC) #3
Mike Belshe
lgtm http://codereview.chromium.org/6591030/diff/7001/net/http/http_stream_factory_impl.h File net/http/http_stream_factory_impl.h (right): http://codereview.chromium.org/6591030/diff/7001/net/http/http_stream_factory_impl.h#newcode90 net/http/http_stream_factory_impl.h:90: // destroyed. "...deleted when the factory is destroyed." ...
9 years, 9 months ago (2011-03-01 17:09:19 UTC) #4
willchan no longer on Chromium
9 years, 9 months ago (2011-03-01 17:48:27 UTC) #5
http://codereview.chromium.org/6591030/diff/7001/net/http/http_stream_factory...
File net/http/http_stream_factory_impl.h (right):

http://codereview.chromium.org/6591030/diff/7001/net/http/http_stream_factory...
net/http/http_stream_factory_impl.h:90: // destroyed.
On 2011/03/01 17:09:19, Mike Belshe wrote:
> "...deleted when the factory is destroyed." sounds like when the browser dies?
> 
> From looking at the code, its not nearly that bad.  The orphaned jobs simply
> park here until the IO completes, at which point we clean them up and remove
> them from this set?

Oh, I'll clarify this comment. What I mean is that for |request_map_|, we're
guaranteed that it's empty when we hit ~HttpStreamFactoryImpl, because all
URLRequests must be canceled by then. Orphaned jobs aren't tied to a Request, so
they won't be canceled when the URLRequest (and its corresponding Request) are
canceled, so there may be some leftover in this set when the destructor runs. We
delete all the leftovers.

Powered by Google App Engine
This is Rietveld 408576698