diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-27 03:40:44 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-27 03:40:44 +0000 |
commit | 2cfc6bb8891f4eaac2146c97fe562ca698a9883c (patch) | |
tree | 064ab3652329edc1a33845aa58c0aef2f8322a7b /net/quic/reliable_quic_stream.cc | |
parent | a9f5730af67a9838ea3e68efa5beb54f861f02cb (diff) | |
download | chromium_src-2cfc6bb8891f4eaac2146c97fe562ca698a9883c.zip chromium_src-2cfc6bb8891f4eaac2146c97fe562ca698a9883c.tar.gz chromium_src-2cfc6bb8891f4eaac2146c97fe562ca698a9883c.tar.bz2 |
Land Recent QUIC changes.
Rename ambiquious ConnectionClose method to OnConnectionClosed.
Merge internal change: 54774694
Change TCP cubic's max packet size used to calculate the initial and
subsequent congestion window in bytes to the default of 1460 from QUIC's
artificially low 1200.
Merge internal change: 54772582
QUIC: make the SCID a hash of the rest of the server config.
We need to ensure that the SCID changes whenever the rest of the server
config does. For example, cl/54004815 changed the server config, but not
the SCID. This could lead to bad 0-RTT handshakes where the server
believes the handshake is good, but will derive different keys than the
client.
The easiest change to ensure that the SCID is changed is to make it a
hash of the rest of the message.
Merge internal change: 54659325
EndToEndTest to fix TSAN.
Merge internal change: 54090381
Don't add a zero-length public key to kPUBS if P-256 support is
disabled. kKEXS and kPUBS should have the same number of elements.
Merge internal change: 54004815
Make the QuicConnectionHelper no longer owned by the QuicConnection.
Instead a single helper is owned by the Dispatcher or Client, and shared
among each Connection.
Merge internal change: 53974968
R=rch@chromium.org
Review URL: https://codereview.chromium.org/45733002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/reliable_quic_stream.cc')
-rw-r--r-- | net/quic/reliable_quic_stream.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/quic/reliable_quic_stream.cc b/net/quic/reliable_quic_stream.cc index dea1e81..0ac6ecd 100644 --- a/net/quic/reliable_quic_stream.cc +++ b/net/quic/reliable_quic_stream.cc @@ -99,7 +99,8 @@ void ReliableQuicStream::OnStreamReset(QuicRstStreamErrorCode error) { TerminateFromPeer(false); // Full close. } -void ReliableQuicStream::ConnectionClose(QuicErrorCode error, bool from_peer) { +void ReliableQuicStream::OnConnectionClosed(QuicErrorCode error, + bool from_peer) { if (read_side_closed_ && write_side_closed_) { return; } @@ -133,6 +134,15 @@ void ReliableQuicStream::Close(QuicRstStreamErrorCode error) { } } +void ReliableQuicStream::CloseConnection(QuicErrorCode error) { + session()->connection()->SendConnectionClose(error); +} + +void ReliableQuicStream::CloseConnectionWithDetails(QuicErrorCode error, + const string& details) { + session()->connection()->SendConnectionCloseWithDetails(error, details); +} + size_t ReliableQuicStream::Readv(const struct iovec* iov, size_t iov_len) { if (headers_decompressed_ && decompressed_headers_.empty()) { return sequencer_.Readv(iov, iov_len); |