Internal QUICHE change PiperOrigin-RevId: 321859385 Change-Id: I06bc800c53946b9417e9d4e81186aafd62814a20
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc index 63a79db..eac8f5e 100644 --- a/quic/core/quic_connection.cc +++ b/quic/core/quic_connection.cc
@@ -2428,6 +2428,7 @@ // Server is constrained by the amplification restriction. QUIC_CODE_COUNT(quic_throttled_by_amplification_limit); QUIC_DVLOG(1) << ENDPOINT << "Constrained by amplification restriction"; + ++stats_.num_amplification_throttling; return false; }
diff --git a/quic/core/quic_connection_stats.h b/quic/core/quic_connection_stats.h index 529a4ef..88f8880 100644 --- a/quic/core/quic_connection_stats.h +++ b/quic/core/quic_connection_stats.h
@@ -171,6 +171,10 @@ // the time between stream creation to the time its last ack is received, // minus the peer ack delay in the last ack. QuicTime::Delta total_response_time = QuicTime::Delta::Zero(); + + // Number of times when the connection tries to send data but gets throttled + // by amplification factor. + size_t num_amplification_throttling = 0; }; } // namespace quic