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

Issue 192583004: QUIC - use QuicSessionKey tuple (host, port, is_https) instead of server_hostname (Closed)

Created:
6 years, 9 months ago by ramant (doing other things)
Modified:
6 years, 9 months ago
Reviewers:
wtc, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, wtc, rvargas (doing something else), jar (doing other things)
Visibility:
Public.

Description

QUIC - use QuicSessionKey tuple (host, port, is_https) instead of server_hostname, while creating QuicClientSession, QuicCryptoClientStream, QuicCryptoClientConfig, etc objects. QuicSessionKey is used as the key to access QUIC server config information from all caches (disk and memory caches). On Disk cache, the key for accessing QUIC server information is the flattened version (scheme://hostname:port) of QuicSession. scheme would be either http or https until we support other schemes. R=rch@chromium.org, wtc@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257272

Patch Set 1 #

Total comments: 4

Patch Set 2 : Default server port to 9999 #

Patch Set 3 : reupload #

Total comments: 8

Patch Set 4 : use : instead of / as host, port separator #

Total comments: 4

Patch Set 5 : fix comments from Patch set 1 and 3 and merge with TOT #

Total comments: 24

Patch Set 6 : Use QuicSessionKey as arg and delete server_hostname as arg #

Total comments: 10

Patch Set 7 : use server_key where server_hostname is used #

Patch Set 8 : Merge with TOT #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -160 lines) Patch
M net/http/disk_cache_based_quic_server_info.h View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M net/http/disk_cache_based_quic_server_info.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M net/http/disk_cache_based_quic_server_info_unittest.cc View 1 2 3 4 5 6 chunks +115 lines, -12 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M net/quic/crypto/quic_crypto_client_config.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -10 lines 0 comments Download
M net/quic/crypto/quic_crypto_client_config.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -8 lines 0 comments Download
M net/quic/crypto/quic_crypto_client_config_test.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M net/quic/crypto/quic_server_info.h View 1 2 3 4 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M net/quic/crypto/quic_server_info.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/quic/quic_client_session.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 2 comments Download
M net/quic/quic_client_session.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -4 lines 0 comments Download
M net/quic/quic_client_session_test.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M net/quic/quic_crypto_client_stream.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M net/quic/quic_crypto_client_stream.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -6 lines 0 comments Download
M net/quic/quic_crypto_client_stream_factory.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/quic_crypto_client_stream_test.cc View 1 2 3 4 5 6 5 chunks +9 lines, -4 lines 0 comments Download
M net/quic/quic_crypto_server_stream_test.cc View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M net/quic/quic_http_stream_test.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M net/quic/quic_session_key.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 3 comments Download
M net/quic/quic_session_key.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M net/quic/quic_stream_factory.h View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 4 5 6 7 7 chunks +10 lines, -13 lines 0 comments Download
M net/quic/quic_stream_factory_test.cc View 1 2 3 4 5 6 6 chunks +17 lines, -13 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils.cc View 1 2 3 4 5 6 4 chunks +7 lines, -3 lines 0 comments Download
M net/quic/test_tools/mock_crypto_client_stream.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M net/quic/test_tools/mock_crypto_client_stream.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M net/quic/test_tools/mock_crypto_client_stream_factory.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M net/quic/test_tools/mock_crypto_client_stream_factory.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M net/tools/quic/end_to_end_test.cc View 1 2 3 4 5 6 5 chunks +10 lines, -5 lines 0 comments Download
M net/tools/quic/quic_client.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -9 lines 0 comments Download
M net/tools/quic/quic_client.cc View 1 2 3 4 5 6 4 chunks +6 lines, -5 lines 0 comments Download
M net/tools/quic/quic_client_bin.cc View 1 2 3 4 5 5 chunks +11 lines, -3 lines 0 comments Download
M net/tools/quic/quic_client_session.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M net/tools/quic/quic_client_session.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M net/tools/quic/quic_client_session_test.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M net/tools/quic/quic_spdy_client_stream_test.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M net/tools/quic/test_tools/quic_test_client.h View 1 2 3 4 5 6 3 chunks +9 lines, -4 lines 0 comments Download
M net/tools/quic/test_tools/quic_test_client.cc View 1 2 3 4 5 6 5 chunks +22 lines, -17 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
ramant (doing other things)
Hi Ryan, Changed the disk caching of server config code to use port in addition ...
6 years, 9 months ago (2014-03-10 17:56:57 UTC) #1
ramant (doing other things)
Hi Ryan and Wan-Teh, Sorry the previous upload failed. Re-uploaded again. Would appreciate your opinion ...
6 years, 9 months ago (2014-03-10 20:03:23 UTC) #2
ramant (doing other things)
https://codereview.chromium.org/192583004/diff/60001/net/tools/quic/quic_client_session.cc File net/tools/quic/quic_client_session.cc (right): https://codereview.chromium.org/192583004/diff/60001/net/tools/quic/quic_client_session.cc#newcode22 net/tools/quic/quic_client_session.cc:22: // Defaulting server_port to 9999. We are not passing ...
6 years, 9 months ago (2014-03-10 20:31:46 UTC) #3
Ryan Hamilton
lgtm Looks pretty resonable https://codereview.chromium.org/192583004/diff/1/net/http/disk_cache_based_quic_server_info.cc File net/http/disk_cache_based_quic_server_info.cc (right): https://codereview.chromium.org/192583004/diff/1/net/http/disk_cache_based_quic_server_info.cc#newcode119 net/http/disk_cache_based_quic_server_info.cc:119: return "quicserverinfo:" + hostname_ + ...
6 years, 9 months ago (2014-03-10 20:57:33 UTC) #4
ramant (doing other things)
Hi Ryan, Made all the changes you have suggested and many thanks for your comments. ...
6 years, 9 months ago (2014-03-11 00:48:49 UTC) #5
Ryan Hamilton
lgtm
6 years, 9 months ago (2014-03-11 00:55:49 UTC) #6
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-11 01:10:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/192583004/100001
6 years, 9 months ago (2014-03-11 01:14:35 UTC) #8
wtc
Patch set 5 LGTM. I suggest not checking this in until we have resolved the ...
6 years, 9 months ago (2014-03-11 01:41:39 UTC) #9
ramant (doing other things)
The CQ bit was unchecked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-11 01:44:09 UTC) #10
wtc
https://codereview.chromium.org/192583004/diff/100001/net/http/disk_cache_based_quic_server_info.cc File net/http/disk_cache_based_quic_server_info.cc (right): https://codereview.chromium.org/192583004/diff/100001/net/http/disk_cache_based_quic_server_info.cc#newcode118 net/http/disk_cache_based_quic_server_info.cc:118: base::UintToString(host_port_pair_.port()); On 2014/03/11 01:41:39, wtc wrote: > > 1. ...
6 years, 9 months ago (2014-03-11 15:37:52 UTC) #11
Ryan Hamilton
On 2014/03/11 15:37:52, wtc wrote: > https://codereview.chromium.org/192583004/diff/100001/net/http/disk_cache_based_quic_server_info.cc > File net/http/disk_cache_based_quic_server_info.cc (right): > > https://codereview.chromium.org/192583004/diff/100001/net/http/disk_cache_based_quic_server_info.cc#newcode118 > ...
6 years, 9 months ago (2014-03-11 15:42:41 UTC) #12
Ryan Hamilton
https://codereview.chromium.org/192583004/diff/100001/net/http/http_cache.cc File net/http/http_cache.cc (right): https://codereview.chromium.org/192583004/diff/100001/net/http/http_cache.cc#newcode278 net/http/http_cache.cc:278: virtual QuicServerInfo* GetForHostPortPair( On 2014/03/11 01:41:39, wtc wrote: > ...
6 years, 9 months ago (2014-03-11 15:47:43 UTC) #13
wtc
https://codereview.chromium.org/192583004/diff/100001/net/http/disk_cache_based_quic_server_info.cc File net/http/disk_cache_based_quic_server_info.cc (right): https://codereview.chromium.org/192583004/diff/100001/net/http/disk_cache_based_quic_server_info.cc#newcode118 net/http/disk_cache_based_quic_server_info.cc:118: base::UintToString(host_port_pair_.port()); Ryan, thanks for the comment. If we can ...
6 years, 9 months ago (2014-03-11 15:50:19 UTC) #14
ramant (doing other things)
Hi Ryan and Wan-Teh, Thanks for your comments. Made the changes we had dicussed offline. ...
6 years, 9 months ago (2014-03-13 01:50:11 UTC) #15
ramant (doing other things)
Hi Ryan and Wan-Teh, Was thinking whereever we are passing server_hostname and server_key, would like ...
6 years, 9 months ago (2014-03-13 15:53:45 UTC) #16
Ryan Hamilton
On 2014/03/13 15:53:45, ramant wrote: > Hi Ryan and Wan-Teh, > Was thinking whereever we ...
6 years, 9 months ago (2014-03-13 16:53:03 UTC) #17
ramant (doing other things)
Hi Ryan and Wan-Teh, Deleted server_hostname as argument. Would appreciate a high level review. Some ...
6 years, 9 months ago (2014-03-13 20:34:18 UTC) #18
Ryan Hamilton
LGTM. I think you might want to update the CL description since the scope of ...
6 years, 9 months ago (2014-03-13 22:14:39 UTC) #19
wtc
Patch set 6 LGTM. IMPORTANT: in places where the original parameter or class member name ...
6 years, 9 months ago (2014-03-13 22:22:03 UTC) #20
ramant (doing other things)
Used server_key whereever old variables server_hostname (or hostname) are used. quic_stream_factory.cc is the only file ...
6 years, 9 months ago (2014-03-13 23:46:35 UTC) #21
ramant (doing other things)
6 years, 9 months ago (2014-03-14 19:14:00 UTC) #22
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-14 19:14:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/192583004/310001
6 years, 9 months ago (2014-03-14 19:14:51 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 20:11:13 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282260
6 years, 9 months ago (2014-03-14 20:11:14 UTC) #26
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-14 21:32:19 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/192583004/310001
6 years, 9 months ago (2014-03-14 21:36:02 UTC) #28
commit-bot: I haz the power
Change committed as 257272
6 years, 9 months ago (2014-03-15 00:45:16 UTC) #29
wtc
Patch set 8 LGTM. https://codereview.chromium.org/192583004/diff/310001/net/quic/quic_client_session.h File net/quic/quic_client_session.h (right): https://codereview.chromium.org/192583004/diff/310001/net/quic/quic_client_session.h#newcode96 net/quic/quic_client_session.h:96: const QuicSessionKey& server_key, Nit: server_info ...
6 years, 9 months ago (2014-03-17 17:13:20 UTC) #30
ramant (doing other things)
https://codereview.chromium.org/192583004/diff/310001/net/quic/quic_client_session.h File net/quic/quic_client_session.h (right): https://codereview.chromium.org/192583004/diff/310001/net/quic/quic_client_session.h#newcode96 net/quic/quic_client_session.h:96: const QuicSessionKey& server_key, On 2014/03/17 17:13:21, wtc wrote: > ...
6 years, 9 months ago (2014-03-17 18:27:35 UTC) #31
wtc
6 years, 9 months ago (2014-03-18 23:50:12 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/192583004/diff/310001/net/quic/quic_session_k...
File net/quic/quic_session_key.h (right):

https://codereview.chromium.org/192583004/diff/310001/net/quic/quic_session_k...
net/quic/quic_session_key.h:31: const HostPortPair& host_port_pair() const {

On 2014/03/17 18:27:36, ramant wrote:
>
> [The host_port_pair() getter method] is being used by quic_stream_factory.
Will leave it if you don't have
> objections (else we need to create HostPortPair object from QuicSessionKey).
> 
> It uses host_port_pair for
> "HostResolver::RequestInfo(session_key_.host_port_pair())" and to call
factory's
> CreateSession

Thanks for the reply. Please keep the getter method then.

Powered by Google App Engine
This is Rietveld 408576698