Commit 98e5a9e1 authored by rch@chromium.org's avatar rch@chromium.org

Don't try to change the alternate-protocol state of a server, if the

alternate-protocol state is unknown.

BUG=379732

Review URL: https://codereview.chromium.org/309063010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274466 0039d316-1c4b-4281-b951-d872f2087c98
parent aee9f1fc
......@@ -838,13 +838,18 @@ void QuicStreamFactory::ProcessGoingAwaySession(
if (!session_was_active)
return;
const HostPortPair& server = server_id.host_port_pair();
// Don't try to change the alternate-protocol state, if the
// alternate-protocol state is unknown.
if (!http_server_properties_->HasAlternateProtocol(server))
return;
// TODO(rch): In the special case where the session has received no
// packets from the peer, we should consider blacklisting this
// differently so that we still race TCP but we don't consider the
// session connected until the handshake has been confirmed.
HistogramBrokenAlternateProtocolLocation(
BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY);
const HostPortPair& server = server_id.host_port_pair();
PortAlternateProtocolPair alternate =
http_server_properties_->GetAlternateProtocol(server);
DCHECK_EQ(QUIC, alternate.protocol);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment