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

Issue 2625883002: SSLClientSessionCache: Log number of times Lookup is called per Session. (Closed)

Created:
3 years, 11 months ago by nharper
Modified:
3 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, svaldez
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SSLClientSessionCache: Log number of times Lookup is called per Session. Session tickets in TLS 1.3 will be single-use, so to be able to resume multiple sessions to the same host, we will need to store multiple session tickets per host. By counting how many times Lookup is called per session in an SSLClientSessionCache, we can tune how many session tickets per host we need to store for TLS 1.3. BUG=631988 Review-Url: https://codereview.chromium.org/2625883002 Cr-Commit-Position: refs/heads/master@{#444902} Committed: https://chromium.googlesource.com/chromium/src/+/00d06ff78fc0705706dd0c7db1170072072e8225

Patch Set 1 #

Total comments: 8

Patch Set 2 : log number of concurrent handshakes with the same session, not total number of times a session was … #

Total comments: 3

Patch Set 3 : reset count on handshake completion; log count from lookup #

Total comments: 12

Patch Set 4 : rebase #

Patch Set 5 : reply to comments #

Total comments: 8

Patch Set 6 : reply to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -55 lines) Patch
M net/socket/ssl_client_socket_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 2 3 4 5 2 chunks +15 lines, -2 lines 0 comments Download
M net/ssl/ssl_client_session_cache.h View 1 2 3 4 5 3 chunks +18 lines, -3 lines 0 comments Download
M net/ssl/ssl_client_session_cache.cc View 1 2 3 4 5 4 chunks +33 lines, -5 lines 0 comments Download
M net/ssl/ssl_client_session_cache_unittest.cc View 1 2 3 4 5 11 chunks +84 lines, -45 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
nharper
3 years, 11 months ago (2017-01-10 23:42:08 UTC) #2
davidben
https://codereview.chromium.org/2625883002/diff/1/net/ssl/ssl_client_session_cache.cc File net/ssl/ssl_client_session_cache.cc (right): https://codereview.chromium.org/2625883002/diff/1/net/ssl/ssl_client_session_cache.cc#newcode64 net/ssl/ssl_client_session_cache.cc:64: iter->second->lookup_count++; To simulate TLS 1.3 renewal, I think we ...
3 years, 11 months ago (2017-01-11 16:47:50 UTC) #3
nharper
https://codereview.chromium.org/2625883002/diff/1/net/ssl/ssl_client_session_cache.cc File net/ssl/ssl_client_session_cache.cc (right): https://codereview.chromium.org/2625883002/diff/1/net/ssl/ssl_client_session_cache.cc#newcode64 net/ssl/ssl_client_session_cache.cc:64: iter->second->lookup_count++; On 2017/01/11 16:47:49, davidben wrote: > To simulate ...
3 years, 11 months ago (2017-01-11 22:31:18 UTC) #4
nharper
This should have the metric recording the correct value now. I also fixed putting Entry ...
3 years, 11 months ago (2017-01-12 19:51:30 UTC) #5
davidben
https://codereview.chromium.org/2625883002/diff/20001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/20001/net/socket/ssl_client_socket_impl.cc#newcode2001 net/socket/ssl_client_socket_impl.cc:2001: GetSessionCacheKey(), negotiated_protocol_ == kProtoHTTP2); Doing it in LogConnectEndEvent seems ...
3 years, 11 months ago (2017-01-17 20:16:42 UTC) #6
nharper
https://codereview.chromium.org/2625883002/diff/20001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/20001/net/socket/ssl_client_socket_impl.cc#newcode2001 net/socket/ssl_client_socket_impl.cc:2001: GetSessionCacheKey(), negotiated_protocol_ == kProtoHTTP2); On 2017/01/17 20:16:42, davidben wrote: ...
3 years, 11 months ago (2017-01-17 20:33:16 UTC) #7
davidben
https://codereview.chromium.org/2625883002/diff/20001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/20001/net/socket/ssl_client_socket_impl.cc#newcode2001 net/socket/ssl_client_socket_impl.cc:2001: GetSessionCacheKey(), negotiated_protocol_ == kProtoHTTP2); On 2017/01/17 20:33:16, nharper wrote: ...
3 years, 11 months ago (2017-01-17 21:27:02 UTC) #8
nharper
I updated the code based on our discussion yesterday.
3 years, 11 months ago (2017-01-19 01:46:50 UTC) #9
davidben
Last iteration, hopefully! :-) https://codereview.chromium.org/2625883002/diff/40001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/40001/net/socket/ssl_client_socket_impl.cc#newcode1151 net/socket/ssl_client_socket_impl.cc:1151: GetSessionCacheKey(), SSL_get_session(ssl_.get())); Doesn't this want ...
3 years, 11 months ago (2017-01-19 20:29:34 UTC) #10
nharper
https://codereview.chromium.org/2625883002/diff/40001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/40001/net/socket/ssl_client_socket_impl.cc#newcode1151 net/socket/ssl_client_socket_impl.cc:1151: GetSessionCacheKey(), SSL_get_session(ssl_.get())); On 2017/01/19 20:29:34, davidben wrote: > Doesn't ...
3 years, 11 months ago (2017-01-19 21:50:36 UTC) #11
davidben
lgtm with comments. https://codereview.chromium.org/2625883002/diff/80001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/80001/net/socket/ssl_client_socket_impl.cc#newcode1156 net/socket/ssl_client_socket_impl.cc:1156: // be speaking h2). Nit: Probably ...
3 years, 11 months ago (2017-01-19 21:56:12 UTC) #12
nharper
https://codereview.chromium.org/2625883002/diff/80001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2625883002/diff/80001/net/socket/ssl_client_socket_impl.cc#newcode1156 net/socket/ssl_client_socket_impl.cc:1156: // be speaking h2). On 2017/01/19 21:56:12, davidben wrote: ...
3 years, 11 months ago (2017-01-19 22:09:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2625883002/100001
3 years, 11 months ago (2017-01-19 22:10:01 UTC) #16
nharper
Adding holte as a reviewer for histograms.xml change.
3 years, 11 months ago (2017-01-19 22:11:53 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/00d06ff78fc0705706dd0c7db1170072072e8225
3 years, 11 months ago (2017-01-20 00:56:44 UTC) #21
Wez
Hallo mpearson@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-07 22:33:57 UTC) #23
Mark P
3 years, 10 months ago (2017-02-07 22:46:18 UTC) #24
Message was sent while issue was closed.
post-fact histograms.xml lgtm

On 2017/02/07 22:33:57, Wez wrote:
> Hallo mailto:mpearson@chromium.org!
> Due to a depot_tools patch which mistakenly removed the OWNERS check for
> non-source files (see crbug.com/684270), the following files landed in this CL
> and need a retrospective review from you:
> 	tools/metrics/histograms/histograms.xml
> Thanks,
> Wez

Powered by Google App Engine
This is Rietveld 408576698