| Index: net/quic/quic_connection.cc
|
| diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
|
| index 9525b266d87b9cec5be23a3ef3c96eca9efc0d1b..6d2e400c3efc612da037b6276bcf1c8e34d166ea 100644
|
| --- a/net/quic/quic_connection.cc
|
| +++ b/net/quic/quic_connection.cc
|
| @@ -1202,7 +1202,7 @@ const QuicConnectionStats& QuicConnection::GetStats() {
|
| stats_.srtt_us = srtt.ToMicroseconds();
|
|
|
| stats_.estimated_bandwidth = sent_packet_manager_.BandwidthEstimate();
|
| - stats_.max_packet_size = packet_generator_.GetMaxPacketLength();
|
| + stats_.max_packet_size = packet_generator_.GetCurrentMaxPacketLength();
|
| stats_.max_received_packet_size = largest_received_packet_size_;
|
| return stats_;
|
| }
|
| @@ -1413,7 +1413,7 @@ bool QuicConnection::ProcessValidatedPacket(const QuicPacketHeader& header) {
|
|
|
| if (perspective_ == Perspective::IS_SERVER &&
|
| encryption_level_ == ENCRYPTION_NONE &&
|
| - last_size_ > packet_generator_.GetMaxPacketLength()) {
|
| + last_size_ > packet_generator_.GetCurrentMaxPacketLength()) {
|
| SetMaxPacketLength(last_size_);
|
| }
|
| return true;
|
| @@ -1568,7 +1568,7 @@ bool QuicConnection::WritePacket(SerializedPacket* packet) {
|
| }
|
|
|
| DCHECK_LE(encrypted_length, kMaxPacketSize);
|
| - DCHECK_LE(encrypted_length, packet_generator_.GetMaxPacketLength());
|
| + DCHECK_LE(encrypted_length, packet_generator_.GetCurrentMaxPacketLength());
|
| DVLOG(1) << ENDPOINT << "Sending packet " << packet_number << " : "
|
| << (packet->is_fec_packet
|
| ? "FEC "
|
| @@ -1982,7 +1982,7 @@ void QuicConnection::SendGoAway(QuicErrorCode error,
|
| }
|
|
|
| QuicByteCount QuicConnection::max_packet_length() const {
|
| - return packet_generator_.GetMaxPacketLength();
|
| + return packet_generator_.GetCurrentMaxPacketLength();
|
| }
|
|
|
| void QuicConnection::SetMaxPacketLength(QuicByteCount length) {
|
|
|