Index: net/quic/quic_crypto_client_stream.cc |
diff --git a/net/quic/quic_crypto_client_stream.cc b/net/quic/quic_crypto_client_stream.cc |
index 237c1d378f07f5deb83a666f895b3f104fbc74a3..e4c9b4143cd4d8513d6be27868ce40f03de8f35c 100644 |
--- a/net/quic/quic_crypto_client_stream.cc |
+++ b/net/quic/quic_crypto_client_stream.cc |
@@ -67,6 +67,7 @@ void QuicCryptoClientStream::ProofVerifierCallbackImpl::Cancel() { |
QuicCryptoClientStream::QuicCryptoClientStream( |
const string& server_hostname, |
+ uint16 server_port, |
QuicSession* session, |
QuicCryptoClientConfig* crypto_config) |
: QuicCryptoStream(session), |
@@ -74,6 +75,7 @@ QuicCryptoClientStream::QuicCryptoClientStream( |
num_client_hellos_(0), |
crypto_config_(crypto_config), |
server_hostname_(server_hostname), |
+ server_port_(server_port), |
generation_counter_(0), |
proof_verify_callback_(NULL), |
disk_cache_load_result_(ERR_UNEXPECTED), |
@@ -152,7 +154,7 @@ void QuicCryptoClientStream::DoHandshakeLoop( |
QuicErrorCode error; |
string error_details; |
QuicCryptoClientConfig::CachedState* cached = |
- crypto_config_->LookupOrCreate(server_hostname_); |
+ crypto_config_->LookupOrCreate(server_hostname_, server_port_); |
if (in != NULL) { |
DVLOG(1) << "Client: Received " << in->DebugString(); |
@@ -432,7 +434,7 @@ int QuicCryptoClientStream::DoLoadQuicServerInfo( |
// We may need to call quic_server_info->Persist later. |
// quic_server_info->Persist requires quic_server_info to be ready, so we |
// always call WaitForDataReady, even though we might have initialized |
- // |cached| config from the cached state for a canonical hostname. |
+ // |cached| config from the cached state for a canonical hostname and port. |
int rv = quic_server_info->WaitForDataReady( |
base::Bind(&QuicCryptoClientStream::OnIOComplete, |
weak_factory_.GetWeakPtr())); |