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

Issue 1140153003: Disable 0RTT if server and origin have different hosts. (Closed)

Created:
5 years, 7 months ago by Bence
Modified:
5 years, 7 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable 0RTT if server and origin have different hosts. Disable 0RTT if the hostname of the server and origin are different. Currently dead code since HttpStreamFactoryImpl::GetAlterantiveServiceFor() refuses to return an altenative service with hostname different than that of the origin, but I plan to change this very soon. While disabling 0RTT in this case is not strictly necessary, it enables us to move faster with alternative service implementation. We expect the most performance gain from pooling to existing connections to different hosts, which is not hindered by this change. * Add origin hostname parameter to QuicStreamRequest::Request() method. * Add server_and_origin_have_same_host parameter to QuicStreamFactory::Create() and CreateAuxiliaryJob() methods, and QuicStreamFactory::Job constructor. * Add server_and_origin_have_same_host_ member to QuicSteamFactory::Job. * Driveby: rename was_alternate_protocol_recently_broken_ member to was_alternative_service_recently_broken_. BUG=474217 Committed: https://crrev.com/68d401ddf26908913f659ef7d4450df351ae33cb Cr-Commit-Position: refs/heads/master@{#330402}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Re: #3. #

Patch Set 3 : Rebase. #

Patch Set 4 : Update DeterministicSocketData methods. #

Patch Set 5 : Remove test subclass, inline Run method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -262 lines) Patch
M net/http/http_stream_factory_impl_job.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_stream_factory.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M net/quic/quic_stream_factory.cc View 1 11 chunks +33 lines, -20 lines 0 comments Download
M net/quic/quic_stream_factory_test.cc View 1 2 3 4 38 chunks +133 lines, -241 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Bence
Ryan, PTAL. Thanks.
5 years, 7 months ago (2015-05-14 19:50:42 UTC) #2
Ryan Hamilton
https://codereview.chromium.org/1140153003/diff/1/net/quic/quic_stream_factory.cc File net/quic/quic_stream_factory.cc (right): https://codereview.chromium.org/1140153003/diff/1/net/quic/quic_stream_factory.cc#newcode197 net/quic/quic_stream_factory.cc:197: // True iff server and origin have the same ...
5 years, 7 months ago (2015-05-18 14:29:52 UTC) #3
Bence
Ryan, PTAL. Thanks. https://codereview.chromium.org/1140153003/diff/1/net/quic/quic_stream_factory.cc File net/quic/quic_stream_factory.cc (right): https://codereview.chromium.org/1140153003/diff/1/net/quic/quic_stream_factory.cc#newcode197 net/quic/quic_stream_factory.cc:197: // True iff server and origin ...
5 years, 7 months ago (2015-05-18 15:17:55 UTC) #4
Ryan Hamilton
Looking great. One test-only change and you're good to go. https://codereview.chromium.org/1140153003/diff/1/net/quic/quic_stream_factory.h File net/quic/quic_stream_factory.h (right): https://codereview.chromium.org/1140153003/diff/1/net/quic/quic_stream_factory.h#newcode280 ...
5 years, 7 months ago (2015-05-18 16:21:55 UTC) #5
Ryan Hamilton
Oh, I think the CL description needs a minor update to match your recent changes.
5 years, 7 months ago (2015-05-18 16:22:37 UTC) #6
Bence
Ryan, PTAL. Thanks. > Oh, I think the CL description needs a minor update to ...
5 years, 7 months ago (2015-05-18 18:12:03 UTC) #7
Ryan Hamilton
lgtm Thanks for doing this!
5 years, 7 months ago (2015-05-18 18:20:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140153003/80001
5 years, 7 months ago (2015-05-18 18:53:09 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-18 20:31:58 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 22:42:17 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/68d401ddf26908913f659ef7d4450df351ae33cb
Cr-Commit-Position: refs/heads/master@{#330402}

Powered by Google App Engine
This is Rietveld 408576698