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

Unified Diff: net/socket/ssl_client_socket_impl.cc

Issue 2625883002: SSLClientSessionCache: Log number of times Lookup is called per Session. (Closed)
Patch Set: log number of concurrent handshakes with the same session, not total number of times a session was … Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/ssl/ssl_client_session_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_impl.cc
diff --git a/net/socket/ssl_client_socket_impl.cc b/net/socket/ssl_client_socket_impl.cc
index 4e3f71311c7c2a4974e2337bc0f583724f3b8a46..f39ef6f4a2fec096af1826a50c92091868030395 100644
--- a/net/socket/ssl_client_socket_impl.cc
+++ b/net/socket/ssl_client_socket_impl.cc
@@ -1997,6 +1997,8 @@ int SSLClientSocketImpl::TokenBindingParse(const uint8_t* contents,
}
void SSLClientSocketImpl::LogConnectEndEvent(int rv) {
+ SSLContext::GetInstance()->session_cache()->DecrementLookupCount(
+ GetSessionCacheKey(), negotiated_protocol_ == kProtoHTTP2);
davidben 2017/01/17 20:16:42 Doing it in LogConnectEndEvent seems wrong. If Ini
nharper 2017/01/17 20:33:16 The lookup happens in Init(), and it can return ER
davidben 2017/01/17 21:27:02 Oh, I see. You're tracking active lookups. But if
if (rv != OK) {
net_log_.EndEventWithNetErrorCode(NetLogEventType::SSL_CONNECT, rv);
return;
« no previous file with comments | « no previous file | net/ssl/ssl_client_session_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698