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

Unified Diff: net/socket/ssl_client_socket_openssl.cc

Issue 384873002: This CL changes the lifespan of SSLConnectJobMessengers so that they are created only when needed, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@useloop
Patch Set: Removed FormatSessionCacheKey function. Created 6 years, 5 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
Index: net/socket/ssl_client_socket_openssl.cc
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc
index b09474461a3ea89929a6cabd830ec88a7175ee6c..9244d9bbe0b544a18aba01a2fd54f2d7327eefbf 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -368,8 +368,10 @@ SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() {
// Compute a unique key string for the SSL session cache.
// Return a string.
std::string SSLClientSocketOpenSSL::GetSessionCacheKey() const {
- return FormatSessionCacheKey(host_and_port_.ToString(),
- ssl_session_cache_shard_);
+ std::string result = host_and_port_.ToString();
+ result.append("/");
+ result.append(ssl_session_cache_shard_);
+ return result;
}
bool SSLClientSocketOpenSSL::InSessionCache() const {

Powered by Google App Engine
This is Rietveld 408576698