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

Issue 1808513003: Add a QuicConfig option to ask the client not to attempt migration. (Closed)

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

Description

Add a QuicConfig option to ask the client not to attempt migration. Merge internal change: 116712124 R=rch@chromium.org BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M net/quic/crypto/crypto_protocol.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/quic/quic_config.h View 2 chunks +7 lines, -0 lines 0 comments Download
M net/quic/quic_config.cc View 4 chunks +15 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 5 (1 generated)
fnk
4 years, 9 months ago (2016-03-16 19:48:31 UTC) #1
Ryan Hamilton
jri: How should this be wired up so Chrome does the needful?
4 years, 9 months ago (2016-03-16 20:28:55 UTC) #3
Jana
On 2016/03/16 20:28:55, Ryan Hamilton wrote: > jri: How should this be wired up so ...
4 years, 9 months ago (2016-03-16 21:59:46 UTC) #4
Ryan Hamilton
4 years, 9 months ago (2016-03-17 00:31:32 UTC) #5
On 2016/03/16 21:59:46, Jana wrote:
> On 2016/03/16 20:28:55, Ryan Hamilton wrote:
> > jri: How should this be wired up so Chrome does the needful?
> 
> QuicStreamFactory will have to query QuicSession's config_ to figure out if
this
> option is set and disable migration that way. There's precedence with
> non-migratable streams, so basically:
> (1) Change
>
https://code.google.com/p/chromium/codesearch#chromium/src/net/quic/quic_stre...
> to if (session->HasNonMigratableStreams() ||
> session->config()->DisableConnectionMigration())
> (2) Change
>
https://code.google.com/p/chromium/codesearch#chromium/src/net/quic/quic_stre...
> to if (!migrate_sessions_early_ || session->HasNonMigratableStreams() ||
> session->config()->DisableConnectionMigration())
> (3) You'll need to add tests to quic_stream_factory_test as well... you can
> basically simply use the three "NonMigratableStream" tests, with modifications
> to set the session's config instead of setting the non-migratable-stream flag.
> 
> That should do it, but (1) will overload the current histogram... I can split
> this into a new histogram after this CL lands.
> 
> You can also land this CL as is, and I can do the rest in a new CL after this
> merge, which might be easier.

If you're planning to do this yourself, that works for me.

LGTM

Powered by Google App Engine
This is Rietveld 408576698